#2F4817#2F4817

#2F4817 is a dark, moderate yellow-green. Relative luminance 0.053; OKLCH L 36.9% C 0.080 H 132.0°. Best body text is #FFFFFF at 10.19:1 contrast (WCAG AA passes).

Color values

HEX#2F4817
RGBrgb(47, 72, 23)
HSLhsl(91, 52%, 19%)
HSVhsv(91, 68%, 28%)
CMYKcmyk(34.7%, 0%, 68.1%, 71.8%)
CIE-LABlab(27.58, -19.22, 25.72)
CIE-LCHlch(27.58, 32.11, 126.77°)
OKLaboklab(36.91% -0.0538 0.0597)
OKLCHoklch(36.91% 0.08 132)
XYZxyz(3.6443, 5.3008, 1.6416)
Luminance0.0530 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4817 #301748
analogous
#474817 #2F4817 #174817
triadic
#2F4817 #172F48 #48172F
tetradic
#2F4817 #174748 #301748 #481717
square
#2F4817 #174748 #301748 #481717
split-complementary
#2F4817 #171748 #481747
monochromatic
#0F1707 #111A08 #2F4817 #4D7626 #6CA535

Accessibility & contrast

On white

10.19
#2F4817 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#2F4817 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4817
10.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4817#FFFFFF#000000##FFFFFF
##2F48171.0010.192.0610.19
#FFFFFF10.191.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4B4211
Deuteranopia (green-blind)
#48401B
Tritanopia (blue-blind)
#30453E
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2f4817;
/* rgb */ color: rgb(47, 72, 23);
/* oklch */ color: oklch(36.9% 0.080 132.0);
Tailwind
colors: {
  custom: {
    50: '#6a7b56',
    500: '#2f4817',
    950: '#000000',
  },
}
SCSS
$custom: #2f4817;
$custom-light: #6a7b56;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4817",
  "rgb": {
    "r": 47,
    "g": 72,
    "b": 23
  },
  "hsl": {
    "h": 90.612,
    "s": 51.579,
    "l": 18.627
  },
  "oklch": {
    "l": 0.36911,
    "c": 0.08033,
    "h": 132
  },
  "luminance": 0.05301
}

Semantic roles & 50–950 ramp

primary
#2F4817
secondary
#5E3C7F
accent
#4DDB95
background
#F6F7F5
surface
#EBEDE9
border
#C6C8C5
text
#060903
muted
#7A7B78

Preview Lab

Preview with #2F4817

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

Preview Lab → · Contrast checker → · Palette generator →

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