#51591C#51591C

#51591C is a dark, moderate yellow. Relative luminance 0.090; OKLCH L 44.3% C 0.084 H 116.3°. Best body text is #FFFFFF at 7.51:1 contrast (WCAG AA passes).

Color values

HEX#51591C
RGBrgb(81, 89, 28)
HSLhsl(68, 52%, 23%)
HSVhsv(68, 69%, 35%)
CMYKcmyk(9%, 0%, 68.5%, 65.1%)
CIE-LABlab(35.94, -12.57, 33.07)
CIE-LCHlch(35.94, 35.37, 110.81°)
OKLaboklab(44.35% -0.0372 0.0753)
OKLCHoklch(44.35% 0.084 116.3)
XYZxyz(7.1755, 8.9780, 2.4533)
Luminance0.0898 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51591C #241C59
analogous
#59421C #51591C #32591C
triadic
#51591C #1C5159 #591C51
tetradic
#51591C #1C5942 #241C59 #591C32
square
#51591C #1C5942 #241C59 #591C32
split-complementary
#51591C #1C3259 #421C59
monochromatic
#151707 #272A0D #51591C #7B882B #A6B639

Accessibility & contrast

On white

7.51
#51591C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#51591C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51591C
7.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51591C#FFFFFF#000000##FFFFFF
##51591C1.007.512.807.51
#FFFFFF7.511.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5F5414
Deuteranopia (green-blind)
#5F5520
Tritanopia (blue-blind)
#56544C
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #51591c;
/* rgb */ color: rgb(81, 89, 28);
/* oklch */ color: oklch(44.3% 0.084 116.3);
Tailwind
colors: {
  custom: {
    50: '#84875c',
    500: '#51591c',
    950: '#000000',
  },
}
SCSS
$custom: #51591c;
$custom-light: #84875c;
$custom-dark: #000000;
JSON
{
  "hex": "#51591c",
  "rgb": {
    "r": 81,
    "g": 89,
    "b": 28
  },
  "hsl": {
    "h": 67.869,
    "s": 52.137,
    "l": 22.941
  },
  "oklch": {
    "l": 0.44345,
    "c": 0.08393,
    "h": 116.3
  },
  "luminance": 0.08978
}

Semantic roles & 50–950 ramp

primary
#51591C
secondary
#4C428F
accent
#4CDC5F
background
#F8F8F5
surface
#EFEFE9
border
#CACAC5
text
#0B0B04
muted
#7C7C79

Preview Lab

Preview with #51591C

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

Preview Lab → · Contrast checker → · Palette generator →

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