#2F420C#2F420C

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

Color values

HEX#2F420C
RGBrgb(47, 66, 12)
HSLhsl(81, 69%, 15%)
HSVhsv(81, 82%, 26%)
CMYKcmyk(28.8%, 0%, 81.8%, 74.1%)
CIE-LABlab(25.34, -16.97, 28.66)
CIE-LCHlch(25.34, 33.31, 120.63°)
OKLaboklab(35.07% -0.0487 0.0641)
OKLCHoklch(35.07% 0.081 127.2)
XYZxyz(3.1869, 4.5272, 1.0537)
Luminance0.0453 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F420C #1F0C42
analogous
#423A0C #2F420C #14420C
triadic
#2F420C #0C2F42 #420C2F
tetradic
#2F420C #0C423A #1F0C42 #420C14
square
#2F420C #0C423A #1F0C42 #420C14
split-complementary
#2F420C #0C1442 #3A0C42
monochromatic
#121A05 #121A05 #2F420C #547615 #79AA1F

Accessibility & contrast

On white

11.02
#2F420C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F420C
11.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F420C#FFFFFF#000000##FFFFFF
##2F420C1.0011.021.9111.02
#FFFFFF11.021.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.021.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f420c;
/* rgb */ color: rgb(47, 66, 12);
/* oklch */ color: oklch(35.1% 0.081 127.2);
Tailwind
colors: {
  custom: {
    50: '#6a764f',
    500: '#2f420c',
    950: '#000000',
  },
}
SCSS
$custom: #2f420c;
$custom-light: #6a764f;
$custom-dark: #000000;
JSON
{
  "hex": "#2f420c",
  "rgb": {
    "r": 47,
    "g": 66,
    "b": 12
  },
  "hsl": {
    "h": 81.111,
    "s": 69.231,
    "l": 15.294
  },
  "oklch": {
    "l": 0.35065,
    "c": 0.08051,
    "h": 127.2
  },
  "luminance": 0.04527
}

Semantic roles & 50–950 ramp

primary
#2F420C
secondary
#492C7E
accent
#3CEC7A
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#060802
muted
#7A7B78

Preview Lab

Preview with #2F420C

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

Preview Lab → · Contrast checker → · Palette generator →

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