#42402F#42402F

#42402F is a dark, muted yellow. Relative luminance 0.050; OKLCH L 36.8% C 0.028 H 102.0°. Best body text is #FFFFFF at 10.47:1 contrast (WCAG AA passes).

Color values

HEX#42402F
RGBrgb(66, 64, 47)
HSLhsl(54, 17%, 22%)
HSVhsv(54, 29%, 26%)
CMYKcmyk(0%, 3%, 28.8%, 74.1%)
CIE-LABlab(26.82, -2.45, 10.74)
CIE-LCHlch(26.82, 11.02, 102.86°)
OKLaboklab(36.83% -0.0058 0.0272)
OKLCHoklch(36.83% 0.028 102)
XYZxyz(4.5933, 5.0304, 3.4178)
Luminance0.0503 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42402F #2F3142
analogous
#42372F #42402F #3B422F
triadic
#42402F #2F4240 #402F42
tetradic
#42402F #2F4237 #2F3142 #422F3B
square
#42402F #2F4237 #2F3142 #422F3B
split-complementary
#42402F #2F3B42 #372F42
monochromatic
#12110D #1E1D16 #42402F #666348 #898562

Accessibility & contrast

On white

10.47
#42402F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#42402F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42402F
10.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42402F#FFFFFF#000000##FFFFFF
##42402F1.0010.472.0110.47
#FFFFFF10.471.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#433F2E
Deuteranopia (green-blind)
#444030
Tritanopia (blue-blind)
#453E3B
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #42402f;
/* rgb */ color: rgb(66, 64, 47);
/* oklch */ color: oklch(36.8% 0.028 102.0);
Tailwind
colors: {
  custom: {
    50: '#767467',
    500: '#42402f',
    950: '#000000',
  },
}
SCSS
$custom: #42402f;
$custom-light: #767467;
$custom-dark: #000000;
JSON
{
  "hex": "#42402f",
  "rgb": {
    "r": 66,
    "g": 64,
    "b": 47
  },
  "hsl": {
    "h": 53.684,
    "s": 16.814,
    "l": 22.157
  },
  "oklch": {
    "l": 0.36829,
    "c": 0.02779,
    "h": 102
  },
  "luminance": 0.0503
}

Semantic roles & 50–950 ramp

primary
#42402F
secondary
#5A5D72
accent
#76BA6E
background
#F7F7F6
surface
#EDEDEB
border
#C8C8C6
text
#080806
muted
#7B7B7A

Preview Lab

Preview with #42402F

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

Preview Lab → · Contrast checker → · Palette generator →

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