#51400C#51400C

#51400C is a dark, moderate yellow. Relative luminance 0.054; OKLCH L 38.0% C 0.070 H 89.6°. Best body text is #FFFFFF at 10.05:1 contrast (WCAG AA passes).

Color values

HEX#51400C
RGBrgb(81, 64, 12)
HSLhsl(45, 74%, 18%)
HSVhsv(45, 85%, 32%)
CMYKcmyk(0%, 21%, 85.2%, 68.2%)
CIE-LABlab(27.96, 1.45, 32.30)
CIE-LCHlch(27.96, 32.34, 87.42°)
OKLaboklab(37.95% 0.0005 0.0704)
OKLCHoklch(37.95% 0.07 89.6)
XYZxyz(5.2934, 5.4430, 1.1196)
Luminance0.0544 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51400C #0C1D51
analogous
#511D0C #51400C #3F510C
triadic
#51400C #0C5140 #400C51
tetradic
#51400C #0C511D #0C1D51 #510C3F
square
#51400C #0C511D #0C1D51 #510C3F
split-complementary
#51400C #0C3F51 #1D0C51
monochromatic
#1B1504 #1C1604 #51400C #866A14 #BC941C

Accessibility & contrast

On white

10.05
#51400C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#51400C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51400C
10.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51400C#FFFFFF#000000##FFFFFF
##51400C1.0010.052.0910.05
#FFFFFF10.051.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#493F04
Deuteranopia (green-blind)
#4D440F
Tritanopia (blue-blind)
#583A36
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #51400c;
/* rgb */ color: rgb(81, 64, 12);
/* oklch */ color: oklch(38.0% 0.070 89.6);
Tailwind
colors: {
  custom: {
    50: '#857450',
    500: '#51400c',
    950: '#000000',
  },
}
SCSS
$custom: #51400c;
$custom-light: #857450;
$custom-dark: #000000;
JSON
{
  "hex": "#51400c",
  "rgb": {
    "r": 81,
    "g": 64,
    "b": 12
  },
  "hsl": {
    "h": 45.217,
    "s": 74.194,
    "l": 18.235
  },
  "oklch": {
    "l": 0.37954,
    "c": 0.07042,
    "h": 89.6
  },
  "luminance": 0.05443
}

Semantic roles & 50–950 ramp

primary
#51400C
secondary
#2C448C
accent
#65F137
background
#F8F7F4
surface
#F0EDE7
border
#CBC8C3
text
#0B0802
muted
#7C7B78

Preview Lab

Preview with #51400C

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

Preview Lab → · Contrast checker → · Palette generator →

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