#42420F#42420F

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

Color values

HEX#42420F
RGBrgb(66, 66, 15)
HSLhsl(60, 63%, 16%)
HSVhsv(60, 77%, 26%)
CMYKcmyk(0%, 0%, 77.3%, 74.1%)
CIE-LABlab(26.99, -7.39, 29.50)
CIE-LCHlch(26.99, 30.41, 104.06°)
OKLaboklab(36.8% -0.0232 0.0659)
OKLCHoklch(36.8% 0.07 109.4)
XYZxyz(4.2814, 5.0893, 1.2086)
Luminance0.0509 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42420F #0F0F42
analogous
#42280F #42420F #28420F
triadic
#42420F #0F4242 #420F42
tetradic
#42420F #0F4228 #0F0F42 #420F28
square
#42420F #0F4228 #0F0F42 #420F28
split-complementary
#42420F #0F2842 #280F42
monochromatic
#191906 #191906 #42420F #74741A #A6A626

Accessibility & contrast

On white

10.41
#42420F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #42420F
10.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42420F#FFFFFF#000000##FFFFFF
##42420F1.0010.412.0210.41
#FFFFFF10.411.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.411.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #42420f;
/* rgb */ color: rgb(66, 66, 15);
/* oklch */ color: oklch(36.8% 0.070 109.4);
Tailwind
colors: {
  custom: {
    50: '#787651',
    500: '#42420f',
    950: '#000000',
  },
}
SCSS
$custom: #42420f;
$custom-light: #787651;
$custom-dark: #000000;
JSON
{
  "hex": "#42420f",
  "rgb": {
    "r": 66,
    "g": 66,
    "b": 15
  },
  "hsl": {
    "h": 60,
    "s": 62.963,
    "l": 15.882
  },
  "oklch": {
    "l": 0.36804,
    "c": 0.06981,
    "h": 109.4
  },
  "luminance": 0.05089
}

Semantic roles & 50–950 ramp

primary
#42420F
secondary
#30307C
accent
#42E642
background
#F7F7F4
surface
#EDEDE7
border
#C8C8C3
text
#090802
muted
#7B7B78

Preview Lab

Preview with #42420F

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

Preview Lab → · Contrast checker → · Palette generator →

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