#2F5417#2F5417

#2F5417 is a dark, moderate yellow-green. Relative luminance 0.070; OKLCH L 40.4% C 0.099 H 135.4°. Best body text is #FFFFFF at 8.74:1 contrast (WCAG AA passes).

Color values

HEX#2F5417
RGBrgb(47, 84, 23)
HSLhsl(96, 57%, 21%)
HSVhsv(96, 73%, 33%)
CMYKcmyk(44%, 0%, 72.6%, 67.1%)
CIE-LABlab(31.82, -25.28, 30.34)
CIE-LCHlch(31.82, 39.50, 129.81°)
OKLaboklab(40.38% -0.0703 0.0694)
OKLCHoklch(40.38% 0.099 135.4)
XYZxyz(4.4972, 7.0066, 1.9259)
Luminance0.0701 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5417 #3C1754
analogous
#4D5417 #2F5417 #17541D
triadic
#2F5417 #172F54 #54172F
tetradic
#2F5417 #174D54 #3C1754 #541D17
square
#2F5417 #174D54 #3C1754 #541D17
split-complementary
#2F5417 #1D1754 #54174D
monochromatic
#0D1807 #14240A #2F5417 #4A8424 #65B431

Accessibility & contrast

On white

8.74
#2F5417 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#2F5417 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F5417
8.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5417#FFFFFF#000000##FFFFFF
##2F54171.008.742.408.74
#FFFFFF8.741.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#574D0F
Deuteranopia (green-blind)
#524A1C
Tritanopia (blue-blind)
#2E5148
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2f5417;
/* rgb */ color: rgb(47, 84, 23);
/* oklch */ color: oklch(40.4% 0.099 135.4);
Tailwind
colors: {
  custom: {
    50: '#6b8458',
    500: '#2f5417',
    950: '#000000',
  },
}
SCSS
$custom: #2f5417;
$custom-light: #6b8458;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5417",
  "rgb": {
    "r": 47,
    "g": 84,
    "b": 23
  },
  "hsl": {
    "h": 96.393,
    "s": 57.009,
    "l": 20.98
  },
  "oklch": {
    "l": 0.40375,
    "c": 0.09884,
    "h": 135.4
  },
  "luminance": 0.07007
}

Semantic roles & 50–950 ramp

primary
#2F5417
secondary
#6C3C8B
accent
#48E0A4
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #2F5417

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

Preview Lab → · Contrast checker → · Palette generator →

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