#2F5916#2F5916

#2F5916 is a dark, moderate yellow-green. Relative luminance 0.078; OKLCH L 41.8% C 0.107 H 136.1°. Best body text is #FFFFFF at 8.20:1 contrast (WCAG AA passes).

Color values

HEX#2F5916
RGBrgb(47, 89, 22)
HSLhsl(98, 60%, 22%)
HSVhsv(98, 75%, 35%)
CMYKcmyk(47.2%, 0%, 75.3%, 65.1%)
CIE-LABlab(33.58, -27.74, 32.64)
CIE-LCHlch(33.58, 42.83, 130.36°)
OKLaboklab(41.81% -0.0771 0.0741)
OKLCHoklch(41.81% 0.107 136.1)
XYZxyz(4.8894, 7.8067, 2.0081)
Luminance0.0781 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5916 #401659
analogous
#515916 #2F5916 #16591F
triadic
#2F5916 #162F59 #59162F
tetradic
#2F5916 #165159 #401659 #591F16
square
#2F5916 #165159 #401659 #591F16
split-complementary
#2F5916 #1F1659 #591651
monochromatic
#0D1906 #15280A #2F5916 #498A22 #63BB2E

Accessibility & contrast

On white

8.20
#2F5916 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#2F5916 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F5916
8.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5916#FFFFFF#000000##FFFFFF
##2F59161.008.202.568.20
#FFFFFF8.201.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5C510C
Deuteranopia (green-blind)
#574E1C
Tritanopia (blue-blind)
#2D554C
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2f5916;
/* rgb */ color: rgb(47, 89, 22);
/* oklch */ color: oklch(41.8% 0.107 136.1);
Tailwind
colors: {
  custom: {
    50: '#6c8858',
    500: '#2f5916',
    950: '#000000',
  },
}
SCSS
$custom: #2f5916;
$custom-light: #6c8858;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5916",
  "rgb": {
    "r": 47,
    "g": 89,
    "b": 22
  },
  "hsl": {
    "h": 97.612,
    "s": 60.36,
    "l": 21.765
  },
  "oklch": {
    "l": 0.4181,
    "c": 0.10694,
    "h": 136.1
  },
  "luminance": 0.07807
}

Semantic roles & 50–950 ramp

primary
#2F5916
secondary
#703B90
accent
#44E4A8
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #2F5916

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

Preview Lab → · Contrast checker → · Palette generator →

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