#51510F#51510F

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

Color values

HEX#51510F
RGBrgb(81, 81, 15)
HSLhsl(60, 69%, 19%)
HSVhsv(60, 81%, 32%)
CMYKcmyk(0%, 0%, 81.5%, 68.2%)
CIE-LABlab(33.28, -8.78, 36.05)
CIE-LCHlch(33.28, 37.10, 103.69°)
OKLaboklab(42.19% -0.028 0.0791)
OKLCHoklch(42.19% 0.084 109.5)
XYZxyz(6.4222, 7.6689, 1.5938)
Luminance0.0767 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51510F #0F0F51
analogous
#51300F #51510F #30510F
triadic
#51510F #0F5151 #510F51
tetradic
#51510F #0F5130 #0F0F51 #510F30
square
#51510F #0F5130 #0F0F51 #510F30
split-complementary
#51510F #0F3051 #300F51
monochromatic
#1A1A05 #1D1D05 #51510F #858519 #B8B822

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##51510F#FFFFFF#000000##FFFFFF
##51510F1.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)
#584D02
Deuteranopia (green-blind)
#594F14
Tritanopia (blue-blind)
#574B45
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #51510f;
/* rgb */ color: rgb(81, 81, 15);
/* oklch */ color: oklch(42.2% 0.084 109.5);
Tailwind
colors: {
  custom: {
    50: '#848153',
    500: '#51510f',
    950: '#000000',
  },
}
SCSS
$custom: #51510f;
$custom-light: #848153;
$custom-dark: #000000;
JSON
{
  "hex": "#51510f",
  "rgb": {
    "r": 81,
    "g": 81,
    "b": 15
  },
  "hsl": {
    "h": 60,
    "s": 68.75,
    "l": 18.824
  },
  "oklch": {
    "l": 0.42185,
    "c": 0.0839,
    "h": 109.5
  },
  "luminance": 0.07669
}

Semantic roles & 50–950 ramp

primary
#51510F
secondary
#31318B
accent
#3CEC3C
background
#F8F7F4
surface
#EFEEE8
border
#CAC9C4
text
#0B0A03
muted
#7C7C78

Preview Lab

Preview with #51510F

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

Preview Lab → · Contrast checker → · Palette generator →

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