#2F5D17#2F5D17

#2F5D17 is a dark, moderate yellow-green. Relative luminance 0.085; OKLCH L 43.0% C 0.112 H 136.9°. Best body text is #FFFFFF at 7.78:1 contrast (WCAG AA passes).

Color values

HEX#2F5D17
RGBrgb(47, 93, 23)
HSLhsl(99, 60%, 23%)
HSVhsv(99, 75%, 36%)
CMYKcmyk(49.5%, 0%, 75.3%, 63.5%)
CIE-LABlab(34.99, -29.48, 33.66)
CIE-LCHlch(34.99, 44.75, 131.22°)
OKLaboklab(42.97% -0.0817 0.0764)
OKLCHoklch(42.97% 0.112 136.9)
XYZxyz(5.2411, 8.4946, 2.1739)
Luminance0.0849 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5D17 #45175D
analogous
#525D17 #2F5D17 #175D22
triadic
#2F5D17 #172F5D #5D172F
tetradic
#2F5D17 #17525D #45175D #5D2217
square
#2F5D17 #17525D #45175D #5D2217
split-complementary
#2F5D17 #22175D #5D1752
monochromatic
#0C1906 #162C0B #2F5D17 #488E23 #61BF2F

Accessibility & contrast

On white

7.78
#2F5D17 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#2F5D17 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F5D17
7.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5D17#FFFFFF#000000##FFFFFF
##2F5D171.007.782.707.78
#FFFFFF7.781.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#60550C
Deuteranopia (green-blind)
#5A511E
Tritanopia (blue-blind)
#2D594F
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #2f5d17;
/* rgb */ color: rgb(47, 93, 23);
/* oklch */ color: oklch(43.0% 0.112 136.9);
Tailwind
colors: {
  custom: {
    50: '#6c8b59',
    500: '#2f5d17',
    950: '#000000',
  },
}
SCSS
$custom: #2f5d17;
$custom-light: #6c8b59;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5d17",
  "rgb": {
    "r": 47,
    "g": 93,
    "b": 23
  },
  "hsl": {
    "h": 99.429,
    "s": 60.345,
    "l": 22.745
  },
  "oklch": {
    "l": 0.42973,
    "c": 0.11189,
    "h": 136.9
  },
  "luminance": 0.08495
}

Semantic roles & 50–950 ramp

primary
#2F5D17
secondary
#763C94
accent
#44E3AD
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070C04
muted
#7A7D79

Preview Lab

Preview with #2F5D17

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

Preview Lab → · Contrast checker → · Palette generator →

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