#2F5B14#2F5B14

#2F5B14 is a dark, moderate yellow-green. Relative luminance 0.081; OKLCH L 42.4% C 0.111 H 136.1°. Best body text is #FFFFFF at 7.99:1 contrast (WCAG AA passes).

Color values

HEX#2F5B14
RGBrgb(47, 91, 20)
HSLhsl(97, 64%, 22%)
HSVhsv(97, 78%, 36%)
CMYKcmyk(48.4%, 0%, 78%, 64.3%)
CIE-LABlab(34.27, -28.82, 34.19)
CIE-LCHlch(34.27, 44.72, 130.13°)
OKLaboklab(42.37% -0.0802 0.077)
OKLCHoklch(42.37% 0.111 136.1)
XYZxyz(5.0395, 8.1367, 1.9667)
Luminance0.0814 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5B14 #40145B
analogous
#535B14 #2F5B14 #145B1D
triadic
#2F5B14 #142F5B #5B142F
tetradic
#2F5B14 #14535B #40145B #5B1D14
square
#2F5B14 #14535B #40145B #5B1D14
split-complementary
#2F5B14 #1D145B #5B1453
monochromatic
#0D1906 #152909 #2F5B14 #498D1F #63BF2A

Accessibility & contrast

On white

7.99
#2F5B14 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#2F5B14 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F5B14
7.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5B14#FFFFFF#000000##FFFFFF
##2F5B141.007.992.637.99
#FFFFFF7.991.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5E5307
Deuteranopia (green-blind)
#594F1B
Tritanopia (blue-blind)
#2D574D
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2f5b14;
/* rgb */ color: rgb(47, 91, 20);
/* oklch */ color: oklch(42.4% 0.111 136.1);
Tailwind
colors: {
  custom: {
    50: '#6c8a57',
    500: '#2f5b14',
    950: '#000000',
  },
}
SCSS
$custom: #2f5b14;
$custom-light: #6c8a57;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5b14",
  "rgb": {
    "r": 47,
    "g": 91,
    "b": 20
  },
  "hsl": {
    "h": 97.183,
    "s": 63.964,
    "l": 21.765
  },
  "oklch": {
    "l": 0.4237,
    "c": 0.1112,
    "h": 136.1
  },
  "luminance": 0.08137
}

Semantic roles & 50–950 ramp

primary
#2F5B14
secondary
#703893
accent
#41E7A8
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #2F5B14

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

Preview Lab → · Contrast checker → · Palette generator →

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