#51420F#51420F

#51420F is a dark, moderate yellow. Relative luminance 0.057; OKLCH L 38.5% C 0.070 H 91.9°. Best body text is #FFFFFF at 9.83:1 contrast (WCAG AA passes).

Color values

HEX#51420F
RGBrgb(81, 66, 15)
HSLhsl(46, 69%, 19%)
HSVhsv(46, 81%, 32%)
CMYKcmyk(0%, 18.5%, 81.5%, 68.2%)
CIE-LABlab(28.59, 0.34, 31.62)
CIE-LCHlch(28.59, 31.62, 89.38°)
OKLaboklab(38.46% -0.0023 0.0697)
OKLCHoklch(38.46% 0.07 91.9)
XYZxyz(5.4281, 5.6806, 1.2624)
Luminance0.0568 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51420F #0F1E51
analogous
#51210F #51420F #3F510F
triadic
#51420F #0F5142 #420F51
tetradic
#51420F #0F5121 #0F1E51 #510F3F
square
#51420F #0F5121 #0F1E51 #510F3F
split-complementary
#51420F #0F3F51 #210F51
monochromatic
#1A1505 #1D1805 #51420F #856C19 #B89622

Accessibility & contrast

On white

9.83
#51420F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#51420F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51420F
9.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51420F#FFFFFF#000000##FFFFFF
##51420F1.009.832.149.83
#FFFFFF9.831.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.831.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #51420f;
/* rgb */ color: rgb(81, 66, 15);
/* oklch */ color: oklch(38.5% 0.070 91.9);
Tailwind
colors: {
  custom: {
    50: '#857651',
    500: '#51420f',
    950: '#000000',
  },
}
SCSS
$custom: #51420f;
$custom-light: #857651;
$custom-dark: #000000;
JSON
{
  "hex": "#51420f",
  "rgb": {
    "r": 81,
    "g": 66,
    "b": 15
  },
  "hsl": {
    "h": 46.364,
    "s": 68.75,
    "l": 18.824
  },
  "oklch": {
    "l": 0.38458,
    "c": 0.06971,
    "h": 91.9
  },
  "luminance": 0.0568
}

Semantic roles & 50–950 ramp

primary
#51420F
secondary
#31458B
accent
#64EC3C
background
#F8F7F4
surface
#F0EDE7
border
#CBC8C3
text
#0B0802
muted
#7C7B78

Preview Lab

Preview with #51420F

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

Preview Lab → · Contrast checker → · Palette generator →

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