#51510C#51510C

#51510C is a dark, moderate yellow. Relative luminance 0.077; OKLCH L 42.2% C 0.086 H 109.6°. Best body text is #FFFFFF at 8.29:1 contrast (WCAG AA passes).

Color values

HEX#51510C
RGBrgb(81, 81, 12)
HSLhsl(60, 74%, 18%)
HSVhsv(60, 85%, 32%)
CMYKcmyk(0%, 0%, 85.2%, 68.2%)
CIE-LABlab(33.27, -8.91, 37.11)
CIE-LCHlch(33.27, 38.17, 103.51°)
OKLaboklab(42.17% -0.0287 0.0807)
OKLCHoklch(42.17% 0.086 109.6)
XYZxyz(6.4024, 7.6609, 1.4892)
Luminance0.0766 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51510C #0C0C51
analogous
#512E0C #51510C #2E510C
triadic
#51510C #0C5151 #510C51
tetradic
#51510C #0C512E #0C0C51 #510C2E
square
#51510C #0C512E #0C0C51 #510C2E
split-complementary
#51510C #0C2E51 #2E0C51
monochromatic
#1B1B04 #1C1C04 #51510C #868614 #BCBC1C

Accessibility & contrast

On white

8.29
#51510C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#51510C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51510C
8.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51510C#FFFFFF#000000##FFFFFF
##51510C1.008.292.538.29
#FFFFFF8.291.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#584D00
Deuteranopia (green-blind)
#594F12
Tritanopia (blue-blind)
#574B44
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #51510c;
/* rgb */ color: rgb(81, 81, 12);
/* oklch */ color: oklch(42.2% 0.086 109.6);
Tailwind
colors: {
  custom: {
    50: '#858152',
    500: '#51510c',
    950: '#000000',
  },
}
SCSS
$custom: #51510c;
$custom-light: #858152;
$custom-dark: #000000;
JSON
{
  "hex": "#51510c",
  "rgb": {
    "r": 81,
    "g": 81,
    "b": 12
  },
  "hsl": {
    "h": 60,
    "s": 74.194,
    "l": 18.235
  },
  "oklch": {
    "l": 0.42166,
    "c": 0.08567,
    "h": 109.6
  },
  "luminance": 0.07661
}

Semantic roles & 50–950 ramp

primary
#51510C
secondary
#2C2C8C
accent
#37F137
background
#F8F7F4
surface
#EFEEE7
border
#CAC9C3
text
#0B0A02
muted
#7C7C78

Preview Lab

Preview with #51510C

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

Preview Lab → · Contrast checker → · Palette generator →

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