#42400C#42400C

#42400C is a dark, moderate yellow. Relative luminance 0.049; OKLCH L 36.3% C 0.070 H 107.2°. Best body text is #FFFFFF at 10.66:1 contrast (WCAG AA passes).

Color values

HEX#42400C
RGBrgb(66, 64, 12)
HSLhsl(58, 69%, 15%)
HSVhsv(58, 82%, 26%)
CMYKcmyk(0%, 3%, 81.8%, 74.1%)
CIE-LABlab(26.31, -6.34, 30.16)
CIE-LCHlch(26.31, 30.82, 101.88°)
OKLaboklab(36.25% -0.0206 0.0666)
OKLCHoklch(36.25% 0.07 107.2)
XYZxyz(4.1467, 4.8517, 1.0658)
Luminance0.0485 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42400C #0C0E42
analogous
#42250C #42400C #29420C
triadic
#42400C #0C4240 #400C42
tetradic
#42400C #0C4225 #0C0E42 #420C29
square
#42400C #0C4225 #0C0E42 #420C29
split-complementary
#42400C #0C2942 #250C42
monochromatic
#1A1905 #1A1905 #42400C #767215 #AAA41F

Accessibility & contrast

On white

10.66
#42400C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#42400C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42400C
10.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42400C#FFFFFF#000000##FFFFFF
##42400C1.0010.661.9710.66
#FFFFFF10.661.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#463D04
Deuteranopia (green-blind)
#473F10
Tritanopia (blue-blind)
#473B36
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #42400c;
/* rgb */ color: rgb(66, 64, 12);
/* oklch */ color: oklch(36.3% 0.070 107.2);
Tailwind
colors: {
  custom: {
    50: '#79744f',
    500: '#42400c',
    950: '#000000',
  },
}
SCSS
$custom: #42400c;
$custom-light: #79744f;
$custom-dark: #000000;
JSON
{
  "hex": "#42400c",
  "rgb": {
    "r": 66,
    "g": 64,
    "b": 12
  },
  "hsl": {
    "h": 57.778,
    "s": 69.231,
    "l": 15.294
  },
  "oklch": {
    "l": 0.36255,
    "c": 0.06972,
    "h": 107.2
  },
  "luminance": 0.04852
}

Semantic roles & 50–950 ramp

primary
#42400C
secondary
#2C2F7E
accent
#42EC3C
background
#F7F7F4
surface
#EEEDE7
border
#C9C8C3
text
#090802
muted
#7B7B78

Preview Lab

Preview with #42400C

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

Preview Lab → · Contrast checker → · Palette generator →

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