#2F5117#2F5117

#2F5117 is a dark, moderate yellow-green. Relative luminance 0.066; OKLCH L 39.5% C 0.094 H 134.7°. Best body text is #FFFFFF at 9.09:1 contrast (WCAG AA passes).

Color values

HEX#2F5117
RGBrgb(47, 81, 23)
HSLhsl(95, 56%, 20%)
HSVhsv(95, 72%, 32%)
CMYKcmyk(42%, 0%, 71.6%, 68.2%)
CIE-LABlab(30.76, -23.82, 29.21)
CIE-LCHlch(30.76, 37.69, 129.20°)
OKLaboklab(39.51% -0.0664 0.067)
OKLCHoklch(39.51% 0.094 134.7)
XYZxyz(4.2693, 6.5509, 1.8499)
Luminance0.0655 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5117 #391751
analogous
#4C5117 #2F5117 #17511C
triadic
#2F5117 #172F51 #51172F
tetradic
#2F5117 #174C51 #391751 #511C17
square
#2F5117 #174C51 #391751 #511C17
split-complementary
#2F5117 #1C1751 #51174C
monochromatic
#0E1807 #132109 #2F5117 #4B8125 #66B032

Accessibility & contrast

On white

9.09
#2F5117 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#2F5117 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F5117
9.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5117#FFFFFF#000000##FFFFFF
##2F51171.009.092.319.09
#FFFFFF9.091.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#544A0F
Deuteranopia (green-blind)
#50471C
Tritanopia (blue-blind)
#2E4E45
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2f5117;
/* rgb */ color: rgb(47, 81, 23);
/* oklch */ color: oklch(39.5% 0.094 134.7);
Tailwind
colors: {
  custom: {
    50: '#6b8257',
    500: '#2f5117',
    950: '#000000',
  },
}
SCSS
$custom: #2f5117;
$custom-light: #6b8257;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5117",
  "rgb": {
    "r": 47,
    "g": 81,
    "b": 23
  },
  "hsl": {
    "h": 95.172,
    "s": 55.769,
    "l": 20.392
  },
  "oklch": {
    "l": 0.39508,
    "c": 0.09434,
    "h": 134.7
  },
  "luminance": 0.06551
}

Semantic roles & 50–950 ramp

primary
#2F5117
secondary
#683C88
accent
#49DFA1
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #2F5117

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

Preview Lab → · Contrast checker → · Palette generator →

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