#51531E#51531E

#51531E is a dark, moderate yellow. Relative luminance 0.080; OKLCH L 42.8% C 0.074 H 111.2°. Best body text is #FFFFFF at 8.06:1 contrast (WCAG AA passes).

Color values

HEX#51531E
RGBrgb(81, 83, 30)
HSLhsl(62, 47%, 22%)
HSVhsv(62, 64%, 33%)
CMYKcmyk(2.4%, 0%, 63.9%, 67.5%)
CIE-LABlab(34.04, -8.95, 30.02)
CIE-LCHlch(34.04, 31.33, 106.60°)
OKLaboklab(42.83% -0.0267 0.0691)
OKLCHoklch(42.83% 0.074 111.2)
XYZxyz(6.7211, 8.0297, 2.4239)
Luminance0.0803 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51531E #201E53
analogous
#533B1E #51531E #37531E
triadic
#51531E #1E5153 #531E51
tetradic
#51531E #1E533B #201E53 #531E37
square
#51531E #1E533B #201E53 #531E37
split-complementary
#51531E #1E3753 #3B1E53
monochromatic
#161608 #25260E #51531E #7D802E #A9AD3E

Accessibility & contrast

On white

8.06
#51531E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#51531E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51531E
8.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51531E#FFFFFF#000000##FFFFFF
##51531E1.008.062.618.06
#FFFFFF8.061.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#594F18
Deuteranopia (green-blind)
#5A5121
Tritanopia (blue-blind)
#574E48
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #51531e;
/* rgb */ color: rgb(81, 83, 30);
/* oklch */ color: oklch(42.8% 0.074 111.2);
Tailwind
colors: {
  custom: {
    50: '#84835c',
    500: '#51531e',
    950: '#000000',
  },
}
SCSS
$custom: #51531e;
$custom-light: #84835c;
$custom-dark: #000000;
JSON
{
  "hex": "#51531e",
  "rgb": {
    "r": 81,
    "g": 83,
    "b": 30
  },
  "hsl": {
    "h": 62.264,
    "s": 46.903,
    "l": 22.157
  },
  "oklch": {
    "l": 0.42833,
    "c": 0.07411,
    "h": 111.2
  },
  "luminance": 0.0803
}

Semantic roles & 50–950 ramp

primary
#51531E
secondary
#474588
accent
#51D756
background
#F8F8F5
surface
#EFEFE9
border
#CACAC5
text
#0B0A04
muted
#7C7C79

Preview Lab

Preview with #51531E

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

Preview Lab → · Contrast checker → · Palette generator →

#51531E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva