#2F5817#2F5817

#2F5817 is a dark, moderate yellow-green. Relative luminance 0.076; OKLCH L 41.5% C 0.105 H 136.1°. Best body text is #FFFFFF at 8.30:1 contrast (WCAG AA passes).

Color values

HEX#2F5817
RGBrgb(47, 88, 23)
HSLhsl(98, 59%, 22%)
HSVhsv(98, 74%, 35%)
CMYKcmyk(46.6%, 0%, 73.9%, 65.5%)
CIE-LABlab(33.23, -27.19, 31.83)
CIE-LCHlch(33.23, 41.86, 130.50°)
OKLaboklab(41.53% -0.0755 0.0726)
OKLCHoklch(41.53% 0.105 136.1)
XYZxyz(4.8165, 7.6454, 2.0324)
Luminance0.0765 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5817 #401758
analogous
#505817 #2F5817 #175820
triadic
#2F5817 #172F58 #58172F
tetradic
#2F5817 #175058 #401758 #582017
square
#2F5817 #175058 #401758 #582017
split-complementary
#2F5817 #201758 #581750
monochromatic
#0D1806 #15270A #2F5817 #498924 #63B930

Accessibility & contrast

On white

8.30
#2F5817 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#2F5817 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F5817
8.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5817#FFFFFF#000000##FFFFFF
##2F58171.008.302.538.30
#FFFFFF8.301.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5B500E
Deuteranopia (green-blind)
#564D1D
Tritanopia (blue-blind)
#2D554B
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2f5817;
/* rgb */ color: rgb(47, 88, 23);
/* oklch */ color: oklch(41.5% 0.105 136.1);
Tailwind
colors: {
  custom: {
    50: '#6c8758',
    500: '#2f5817',
    950: '#000000',
  },
}
SCSS
$custom: #2f5817;
$custom-light: #6c8758;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5817",
  "rgb": {
    "r": 47,
    "g": 88,
    "b": 23
  },
  "hsl": {
    "h": 97.846,
    "s": 58.559,
    "l": 21.765
  },
  "oklch": {
    "l": 0.4153,
    "c": 0.10472,
    "h": 136.1
  },
  "luminance": 0.07646
}

Semantic roles & 50–950 ramp

primary
#2F5817
secondary
#703C8F
accent
#46E2A8
background
#F6F8F5
surface
#ECEFE9
border
#C7CAC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #2F5817

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

Preview Lab → · Contrast checker → · Palette generator →

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