#008040 color codes
- HEX
- #008040
- HEX8
- #008040FF
- HEX8 (Android)
- #FF008040
- RGB
- rgb(0, 128, 64)
- RGB (%)
- 0%, 50%, 25%
- HSL
- hsl(150, 100%, 25%)
- HSV / HSB
- hsv(150, 100%, 50%)
- CMYK
- cmyk(100%, 0%, 50%, 50%)
- OKLCH
- oklch(0.5254 0.1378 152.15)
- OKLCH (%)
- oklch(52.54% 0.1378 152.15)
- Decimal
- 32832
What color is #008040?
#008040 sits at 53% lightness and 0.1378 chroma in OKLCH, hue 152.15°. Its nearest named color is SeaGreen.
Shades and tints of #008040
Tints
Shades
Tones
#008040 color harmonies
Complementary
Analogous
Triadic
Split-complementary
Tetradic
Square
Monochromatic
Using #008040 in CSS
.text { color: #008040; }
.background { background-color: #008040; }
.border { border: 2px solid #008040; }
/* Modern, perceptually uniform */
.text { color: oklch(0.5254 0.1378 152.15); }
/* #008040 at 50% transparency */
.overlay { background-color: #00804080; }Is #008040 accessible?
#008040 on white text scores 5.05:1; on black text it scores 4.16:1. White text passes WCAG AA for normal text on #008040. Recommended text color on a #008040 background: white.
A 4.16:1 vs black
A 5.05:1 vs white
- AA normal ≥ 4.5 Pass
- AA large ≥ 3 Pass
- AAA normal ≥ 7 Fail
- AAA large ≥ 4.5 Pass
Recommended text color: white
CSS
contrast-color() contrast-color(#008040) → white APCA Lc experimental 79.6 Lc · body text (white text)
WCAG 2.1 AA/AAA is the compliance floor; APCA is an optional readability metric.
Related colors
Nearest featured color: Green #008000. See more in the green family on the colors hub.
Frequently asked questions
- What color is #008040?
- #008040 is closest to SeaGreen. In RGB it is rgb(0, 128, 64), and in HSL hsl(150, 100%, 25%).
- What is #008040 in RGB?
- #008040 converts to rgb(0, 128, 64) — red 0, green 128, blue 64.
- What text color is readable on #008040?
- White text — it has the higher contrast ratio (5.05:1) against #008040. White text passes WCAG AA for normal text on #008040.