#2F420F#2F420F

#2F420F is a dark, moderate yellow-green. Relative luminance 0.045; OKLCH L 35.1% C 0.078 H 127.7°. Best body text is #FFFFFF at 11.01:1 contrast (WCAG AA passes).

Color values

HEX#2F420F
RGBrgb(47, 66, 15)
HSLhsl(82, 63%, 16%)
HSVhsv(82, 77%, 26%)
CMYKcmyk(28.8%, 0%, 77.3%, 74.1%)
CIE-LABlab(25.37, -16.74, 27.34)
CIE-LCHlch(25.37, 32.06, 121.49°)
OKLaboklab(35.09% -0.0478 0.0619)
OKLCHoklch(35.09% 0.078 127.7)
XYZxyz(3.2067, 4.5352, 1.1583)
Luminance0.0454 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F420F #220F42
analogous
#423B0F #2F420F #15420F
triadic
#2F420F #0F2F42 #420F2F
tetradic
#2F420F #0F423B #220F42 #420F15
square
#2F420F #0F423B #220F42 #420F15
split-complementary
#2F420F #0F1542 #3B0F42
monochromatic
#121906 #121906 #2F420F #53741A #76A626

Accessibility & contrast

On white

11.01
#2F420F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#2F420F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F420F
11.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F420F#FFFFFF#000000##FFFFFF
##2F420F1.0011.011.9111.01
#FFFFFF11.011.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#463D08
Deuteranopia (green-blind)
#433C13
Tritanopia (blue-blind)
#313F38
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2f420f;
/* rgb */ color: rgb(47, 66, 15);
/* oklch */ color: oklch(35.1% 0.078 127.7);
Tailwind
colors: {
  custom: {
    50: '#6a7651',
    500: '#2f420f',
    950: '#000000',
  },
}
SCSS
$custom: #2f420f;
$custom-light: #6a7651;
$custom-dark: #000000;
JSON
{
  "hex": "#2f420f",
  "rgb": {
    "r": 47,
    "g": 66,
    "b": 15
  },
  "hsl": {
    "h": 82.353,
    "s": 62.963,
    "l": 15.882
  },
  "oklch": {
    "l": 0.35092,
    "c": 0.07817,
    "h": 127.7
  },
  "luminance": 0.04535
}

Semantic roles & 50–950 ramp

primary
#2F420F
secondary
#4D307C
accent
#42E67F
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#060802
muted
#7A7B78

Preview Lab

Preview with #2F420F

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

Preview Lab → · Contrast checker → · Palette generator →

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