#2F5917#2F5917

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

Color values

HEX#2F5917
RGBrgb(47, 89, 23)
HSLhsl(98, 59%, 22%)
HSVhsv(98, 74%, 35%)
CMYKcmyk(47.2%, 0%, 74.2%, 65.1%)
CIE-LABlab(33.59, -27.65, 32.20)
CIE-LCHlch(33.59, 42.44, 130.65°)
OKLaboklab(41.82% -0.0768 0.0733)
OKLCHoklch(41.82% 0.106 136.3)
XYZxyz(4.8992, 7.8107, 2.0599)
Luminance0.0781 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5917 #411759
analogous
#505917 #2F5917 #175920
triadic
#2F5917 #172F59 #59172F
tetradic
#2F5917 #175059 #411759 #592017
square
#2F5917 #175059 #411759 #592017
split-complementary
#2F5917 #201759 #591750
monochromatic
#0D1806 #15280A #2F5917 #498A24 #62BA30

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2F5917#FFFFFF#000000##FFFFFF
##2F59171.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)
#5C510D
Deuteranopia (green-blind)
#574E1D
Tritanopia (blue-blind)
#2D564C
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2f5917;
/* rgb */ color: rgb(47, 89, 23);
/* oklch */ color: oklch(41.8% 0.106 136.3);
Tailwind
colors: {
  custom: {
    50: '#6c8858',
    500: '#2f5917',
    950: '#000000',
  },
}
SCSS
$custom: #2f5917;
$custom-light: #6c8858;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5917",
  "rgb": {
    "r": 47,
    "g": 89,
    "b": 23
  },
  "hsl": {
    "h": 98.182,
    "s": 58.929,
    "l": 21.961
  },
  "oklch": {
    "l": 0.41819,
    "c": 0.10618,
    "h": 136.3
  },
  "luminance": 0.07811
}

Semantic roles & 50–950 ramp

primary
#2F5917
secondary
#713C90
accent
#46E2A9
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #2F5917

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

Preview Lab → · Contrast checker → · Palette generator →

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