#42420C#42420C

#42420C is a dark, moderate yellow. Relative luminance 0.051; OKLCH L 36.8% C 0.072 H 109.5°. Best body text is #FFFFFF at 10.42:1 contrast (WCAG AA passes).

Color values

HEX#42420C
RGBrgb(66, 66, 12)
HSLhsl(60, 69%, 15%)
HSVhsv(60, 82%, 26%)
CMYKcmyk(0%, 0%, 81.8%, 74.1%)
CIE-LABlab(26.97, -7.57, 30.79)
CIE-LCHlch(26.97, 31.71, 103.81°)
OKLaboklab(36.78% -0.024 0.0679)
OKLCHoklch(36.78% 0.072 109.5)
XYZxyz(4.2615, 5.0814, 1.1041)
Luminance0.0508 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42420C #0C0C42
analogous
#42270C #42420C #27420C
triadic
#42420C #0C4242 #420C42
tetradic
#42420C #0C4227 #0C0C42 #420C27
square
#42420C #0C4227 #0C0C42 #420C27
split-complementary
#42420C #0C2742 #270C42
monochromatic
#1A1A05 #1A1A05 #42420C #767615 #AAAA1F

Accessibility & contrast

On white

10.42
#42420C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#42420C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42420C
10.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42420C#FFFFFF#000000##FFFFFF
##42420C1.0010.422.0210.42
#FFFFFF10.421.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#483F03
Deuteranopia (green-blind)
#494110
Tritanopia (blue-blind)
#473D38
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #42420c;
/* rgb */ color: rgb(66, 66, 12);
/* oklch */ color: oklch(36.8% 0.072 109.5);
Tailwind
colors: {
  custom: {
    50: '#79764f',
    500: '#42420c',
    950: '#000000',
  },
}
SCSS
$custom: #42420c;
$custom-light: #79764f;
$custom-dark: #000000;
JSON
{
  "hex": "#42420c",
  "rgb": {
    "r": 66,
    "g": 66,
    "b": 12
  },
  "hsl": {
    "h": 60,
    "s": 69.231,
    "l": 15.294
  },
  "oklch": {
    "l": 0.36779,
    "c": 0.07205,
    "h": 109.5
  },
  "luminance": 0.05081
}

Semantic roles & 50–950 ramp

primary
#42420C
secondary
#2C2C7E
accent
#3CEC3C
background
#F7F7F4
surface
#EDEDE7
border
#C8C8C3
text
#090802
muted
#7B7B78

Preview Lab

Preview with #42420C

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

Preview Lab → · Contrast checker → · Palette generator →

#42420C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva