#51420C#51420C

#51420C is a dark, moderate yellow. Relative luminance 0.057; OKLCH L 38.4% C 0.072 H 92.4°. Best body text is #FFFFFF at 9.84:1 contrast (WCAG AA passes).

Color values

HEX#51420C
RGBrgb(81, 66, 12)
HSLhsl(47, 74%, 18%)
HSVhsv(47, 85%, 32%)
CMYKcmyk(0%, 18.5%, 85.2%, 68.2%)
CIE-LABlab(28.57, 0.20, 32.87)
CIE-LCHlch(28.57, 32.87, 89.66°)
OKLaboklab(38.44% -0.0031 0.0716)
OKLCHoklch(38.44% 0.072 92.4)
XYZxyz(5.4082, 5.6726, 1.1578)
Luminance0.0567 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51420C #0C1B51
analogous
#511F0C #51420C #3D510C
triadic
#51420C #0C5142 #420C51
tetradic
#51420C #0C511F #0C1B51 #510C3D
square
#51420C #0C511F #0C1B51 #510C3D
split-complementary
#51420C #0C3D51 #1F0C51
monochromatic
#1B1604 #1C1704 #51420C #866D14 #BC991C

Accessibility & contrast

On white

9.84
#51420C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#51420C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51420C
9.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51420C#FFFFFF#000000##FFFFFF
##51420C1.009.842.139.84
#FFFFFF9.841.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4A4103
Deuteranopia (green-blind)
#4E450F
Tritanopia (blue-blind)
#583C38
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #51420c;
/* rgb */ color: rgb(81, 66, 12);
/* oklch */ color: oklch(38.4% 0.072 92.4);
Tailwind
colors: {
  custom: {
    50: '#857650',
    500: '#51420c',
    950: '#000000',
  },
}
SCSS
$custom: #51420c;
$custom-light: #857650;
$custom-dark: #000000;
JSON
{
  "hex": "#51420c",
  "rgb": {
    "r": 81,
    "g": 66,
    "b": 12
  },
  "hsl": {
    "h": 46.957,
    "s": 74.194,
    "l": 18.235
  },
  "oklch": {
    "l": 0.38435,
    "c": 0.07169,
    "h": 92.4
  },
  "luminance": 0.05672
}

Semantic roles & 50–950 ramp

primary
#51420C
secondary
#2C418C
accent
#5FF137
background
#F8F7F4
surface
#F0EDE7
border
#CBC8C3
text
#0B0802
muted
#7C7B78

Preview Lab

Preview with #51420C

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

Preview Lab → · Contrast checker → · Palette generator →

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