#2F5F16#2F5F16

#2F5F16 is a dark, moderate yellow-green. Relative luminance 0.088; OKLCH L 43.5% C 0.115 H 137.1°. Best body text is #FFFFFF at 7.58:1 contrast (WCAG AA passes).

Color values

HEX#2F5F16
RGBrgb(47, 95, 22)
HSLhsl(99, 62%, 23%)
HSVhsv(99, 77%, 37%)
CMYKcmyk(50.5%, 0%, 76.8%, 62.7%)
CIE-LABlab(35.69, -30.46, 34.80)
CIE-LCHlch(35.69, 46.25, 131.20°)
OKLaboklab(43.54% -0.0845 0.0786)
OKLCHoklch(43.54% 0.115 137.1)
XYZxyz(5.4092, 8.8463, 2.1814)
Luminance0.0885 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5F16 #46165F
analogous
#535F16 #2F5F16 #165F21
triadic
#2F5F16 #162F5F #5F162F
tetradic
#2F5F16 #16535F #46165F #5F2116
square
#2F5F16 #16535F #46165F #5F2116
split-complementary
#2F5F16 #21165F #5F1653
monochromatic
#0C1906 #162D0A #2F5F16 #489122 #60C22D

Accessibility & contrast

On white

7.58
#2F5F16 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#2F5F16 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F5F16
7.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5F16#FFFFFF#000000##FFFFFF
##2F5F161.007.582.777.58
#FFFFFF7.581.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#625609
Deuteranopia (green-blind)
#5C521D
Tritanopia (blue-blind)
#2C5B51
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #2f5f16;
/* rgb */ color: rgb(47, 95, 22);
/* oklch */ color: oklch(43.5% 0.115 137.1);
Tailwind
colors: {
  custom: {
    50: '#6d8d58',
    500: '#2f5f16',
    950: '#000000',
  },
}
SCSS
$custom: #2f5f16;
$custom-light: #6d8d58;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5f16",
  "rgb": {
    "r": 47,
    "g": 95,
    "b": 22
  },
  "hsl": {
    "h": 99.452,
    "s": 62.393,
    "l": 22.941
  },
  "oklch": {
    "l": 0.43541,
    "c": 0.1154,
    "h": 137.1
  },
  "luminance": 0.08847
}

Semantic roles & 50–950 ramp

primary
#2F5F16
secondary
#773B96
accent
#42E5AE
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070C04
muted
#7A7D79

Preview Lab

Preview with #2F5F16

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

Preview Lab → · Contrast checker → · Palette generator →

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