#2F5E17#2F5E17

#2F5E17 is a dark, moderate yellow-green. Relative luminance 0.087; OKLCH L 43.3% C 0.113 H 137.1°. Best body text is #FFFFFF at 7.68:1 contrast (WCAG AA passes).

Color values

HEX#2F5E17
RGBrgb(47, 94, 23)
HSLhsl(100, 61%, 23%)
HSVhsv(100, 76%, 37%)
CMYKcmyk(50%, 0%, 75.5%, 63.1%)
CIE-LABlab(35.34, -29.93, 34.02)
CIE-LCHlch(35.34, 45.32, 131.34°)
OKLaboklab(43.26% -0.083 0.0772)
OKLCHoklch(43.26% 0.113 137.1)
XYZxyz(5.3295, 8.6713, 2.2033)
Luminance0.0867 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5E17 #46175E
analogous
#525E17 #2F5E17 #175E22
triadic
#2F5E17 #172F5E #5E172F
tetradic
#2F5E17 #17525E #46175E #5E2217
square
#2F5E17 #17525E #46175E #5E2217
split-complementary
#2F5E17 #22175E #5E1752
monochromatic
#0C1906 #162D0B #2F5E17 #488F23 #60C02F

Accessibility & contrast

On white

7.68
#2F5E17 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#2F5E17 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F5E17
7.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5E17#FFFFFF#000000##FFFFFF
##2F5E171.007.682.737.68
#FFFFFF7.681.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#61560C
Deuteranopia (green-blind)
#5B521E
Tritanopia (blue-blind)
#2C5A50
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #2f5e17;
/* rgb */ color: rgb(47, 94, 23);
/* oklch */ color: oklch(43.3% 0.113 137.1);
Tailwind
colors: {
  custom: {
    50: '#6c8c59',
    500: '#2f5e17',
    950: '#000000',
  },
}
SCSS
$custom: #2f5e17;
$custom-light: #6c8c59;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5e17",
  "rgb": {
    "r": 47,
    "g": 94,
    "b": 23
  },
  "hsl": {
    "h": 99.718,
    "s": 60.684,
    "l": 22.941
  },
  "oklch": {
    "l": 0.43261,
    "c": 0.11329,
    "h": 137.1
  },
  "luminance": 0.08672
}

Semantic roles & 50–950 ramp

primary
#2F5E17
secondary
#773C95
accent
#44E4AE
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070C04
muted
#7A7D79

Preview Lab

Preview with #2F5E17

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#2F5E17 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva