#2F5717#2F5717

#2F5717 is a dark, moderate yellow-green. Relative luminance 0.075; OKLCH L 41.2% C 0.103 H 136.0°. Best body text is #FFFFFF at 8.41:1 contrast (WCAG AA passes).

Color values

HEX#2F5717
RGBrgb(47, 87, 23)
HSLhsl(98, 58%, 22%)
HSVhsv(98, 74%, 34%)
CMYKcmyk(46%, 0%, 73.6%, 65.9%)
CIE-LABlab(32.88, -26.71, 31.46)
CIE-LCHlch(32.88, 41.27, 130.34°)
OKLaboklab(41.24% -0.0742 0.0718)
OKLCHoklch(41.24% 0.103 136)
XYZxyz(4.7350, 7.4823, 2.0052)
Luminance0.0748 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5717 #3F1757
analogous
#4F5717 #2F5717 #17571F
triadic
#2F5717 #172F57 #57172F
tetradic
#2F5717 #174F57 #3F1757 #571F17
square
#2F5717 #174F57 #3F1757 #571F17
split-complementary
#2F5717 #1F1757 #57174F
monochromatic
#0D1806 #15270A #2F5717 #498724 #63B831

Accessibility & contrast

On white

8.41
#2F5717 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#2F5717 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F5717
8.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5717#FFFFFF#000000##FFFFFF
##2F57171.008.412.508.41
#FFFFFF8.411.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5A4F0E
Deuteranopia (green-blind)
#554C1D
Tritanopia (blue-blind)
#2E544A
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2f5717;
/* rgb */ color: rgb(47, 87, 23);
/* oklch */ color: oklch(41.2% 0.103 136.0);
Tailwind
colors: {
  custom: {
    50: '#6b8758',
    500: '#2f5717',
    950: '#000000',
  },
}
SCSS
$custom: #2f5717;
$custom-light: #6b8758;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5717",
  "rgb": {
    "r": 47,
    "g": 87,
    "b": 23
  },
  "hsl": {
    "h": 97.5,
    "s": 58.182,
    "l": 21.569
  },
  "oklch": {
    "l": 0.41242,
    "c": 0.10327,
    "h": 136
  },
  "luminance": 0.07483
}

Semantic roles & 50–950 ramp

primary
#2F5717
secondary
#6F3C8E
accent
#46E1A7
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #2F5717

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

Preview Lab → · Contrast checker → · Palette generator →

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