#2F5A16#2F5A16

#2F5A16 is a dark, moderate yellow-green. Relative luminance 0.080; OKLCH L 42.1% C 0.108 H 136.3°. Best body text is #FFFFFF at 8.09:1 contrast (WCAG AA passes).

Color values

HEX#2F5A16
RGBrgb(47, 90, 22)
HSLhsl(98, 61%, 22%)
HSVhsv(98, 76%, 35%)
CMYKcmyk(47.8%, 0%, 75.6%, 64.7%)
CIE-LABlab(33.93, -28.20, 33.00)
CIE-LCHlch(33.93, 43.41, 130.52°)
OKLaboklab(42.1% -0.0783 0.0749)
OKLCHoklch(42.1% 0.108 136.3)
XYZxyz(4.9731, 7.9743, 2.0360)
Luminance0.0798 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5A16 #41165A
analogous
#515A16 #2F5A16 #165A1F
triadic
#2F5A16 #162F5A #5A162F
tetradic
#2F5A16 #16515A #41165A #5A1F16
square
#2F5A16 #16515A #41165A #5A1F16
split-complementary
#2F5A16 #1F165A #5A1651
monochromatic
#0D1906 #15290A #2F5A16 #498B22 #62BC2E

Accessibility & contrast

On white

8.09
#2F5A16 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#2F5A16 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F5A16
8.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5A16#FFFFFF#000000##FFFFFF
##2F5A161.008.092.608.09
#FFFFFF8.091.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5D520B
Deuteranopia (green-blind)
#584E1C
Tritanopia (blue-blind)
#2D564D
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #2f5a16;
/* rgb */ color: rgb(47, 90, 22);
/* oklch */ color: oklch(42.1% 0.108 136.3);
Tailwind
colors: {
  custom: {
    50: '#6c8958',
    500: '#2f5a16',
    950: '#000000',
  },
}
SCSS
$custom: #2f5a16;
$custom-light: #6c8958;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5a16",
  "rgb": {
    "r": 47,
    "g": 90,
    "b": 22
  },
  "hsl": {
    "h": 97.941,
    "s": 60.714,
    "l": 21.961
  },
  "oklch": {
    "l": 0.42098,
    "c": 0.10836,
    "h": 136.3
  },
  "luminance": 0.07975
}

Semantic roles & 50–950 ramp

primary
#2F5A16
secondary
#713B91
accent
#44E4A9
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #2F5A16

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

Preview Lab → · Contrast checker → · Palette generator →

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