#2C420F#2C420F

#2C420F is a dark, moderate yellow-green. Relative luminance 0.045; OKLCH L 34.9% C 0.080 H 129.9°. Best body text is #FFFFFF at 11.09:1 contrast (WCAG AA passes).

Color values

HEX#2C420F
RGBrgb(44, 66, 15)
HSLhsl(86, 63%, 16%)
HSVhsv(86, 77%, 26%)
CMYKcmyk(33.3%, 0%, 77.3%, 74.1%)
CIE-LABlab(25.16, -18.11, 27.05)
CIE-LCHlch(25.16, 32.56, 123.80°)
OKLaboklab(34.87% -0.0513 0.0613)
OKLCHoklch(34.87% 0.08 129.9)
XYZxyz(3.0731, 4.4663, 1.1520)
Luminance0.0447 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C420F #250F42
analogous
#423E0F #2C420F #12420F
triadic
#2C420F #0F2C42 #420F2C
tetradic
#2C420F #0F423E #250F42 #420F12
square
#2C420F #0F423E #250F42 #420F12
split-complementary
#2C420F #0F1242 #3E0F42
monochromatic
#111906 #111906 #2C420F #4D741A #6EA626

Accessibility & contrast

On white

11.09
#2C420F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#2C420F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C420F
11.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C420F#FFFFFF#000000##FFFFFF
##2C420F1.0011.091.8911.09
#FFFFFF11.091.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#453D08
Deuteranopia (green-blind)
#423B13
Tritanopia (blue-blind)
#2D3F38
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2c420f;
/* rgb */ color: rgb(44, 66, 15);
/* oklch */ color: oklch(34.9% 0.080 129.9);
Tailwind
colors: {
  custom: {
    50: '#677651',
    500: '#2c420f',
    950: '#000000',
  },
}
SCSS
$custom: #2c420f;
$custom-light: #677651;
$custom-dark: #000000;
JSON
{
  "hex": "#2c420f",
  "rgb": {
    "r": 44,
    "g": 66,
    "b": 15
  },
  "hsl": {
    "h": 85.882,
    "s": 62.963,
    "l": 15.882
  },
  "oklch": {
    "l": 0.34866,
    "c": 0.07996,
    "h": 129.9
  },
  "luminance": 0.04466
}

Semantic roles & 50–950 ramp

primary
#2C420F
secondary
#51307C
accent
#42E689
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#060802
muted
#7A7B78

Preview Lab

Preview with #2C420F

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

Preview Lab → · Contrast checker → · Palette generator →

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