#51531C#51531C

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

Color values

HEX#51531C
RGBrgb(81, 83, 28)
HSLhsl(62, 50%, 22%)
HSVhsv(62, 66%, 33%)
CMYKcmyk(2.4%, 0%, 66.3%, 67.5%)
CIE-LABlab(34.02, -9.11, 31.01)
CIE-LCHlch(34.02, 32.32, 106.37°)
OKLaboklab(42.81% -0.0275 0.0709)
OKLCHoklch(42.81% 0.076 111.2)
XYZxyz(6.6964, 8.0198, 2.2936)
Luminance0.0802 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51531C #1E1C53
analogous
#533A1C #51531C #36531C
triadic
#51531C #1C5153 #531C51
tetradic
#51531C #1C533A #1E1C53 #531C36
square
#51531C #1C533A #1E1C53 #531C36
split-complementary
#51531C #1C3653 #3A1C53
monochromatic
#161708 #24250D #51531C #7E812B #AAAF3B

Accessibility & contrast

On white

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

On black

2.60
#51531C on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##51531C#FFFFFF#000000##FFFFFF
##51531C1.008.062.608.06
#FFFFFF8.061.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5A4F15
Deuteranopia (green-blind)
#5A511F
Tritanopia (blue-blind)
#574E47
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #51531c;
/* rgb */ color: rgb(81, 83, 28);
/* oklch */ color: oklch(42.8% 0.076 111.2);
Tailwind
colors: {
  custom: {
    50: '#84835b',
    500: '#51531c',
    950: '#000000',
  },
}
SCSS
$custom: #51531c;
$custom-light: #84835b;
$custom-dark: #000000;
JSON
{
  "hex": "#51531c",
  "rgb": {
    "r": 81,
    "g": 83,
    "b": 28
  },
  "hsl": {
    "h": 62.182,
    "s": 49.55,
    "l": 21.765
  },
  "oklch": {
    "l": 0.4281,
    "c": 0.07604,
    "h": 111.2
  },
  "luminance": 0.0802
}

Semantic roles & 50–950 ramp

primary
#51531C
secondary
#454289
accent
#4FD954
background
#F8F8F5
surface
#EFEFE9
border
#CACAC5
text
#0B0A04
muted
#7C7C79

Preview Lab

Preview with #51531C

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

Preview Lab → · Contrast checker → · Palette generator →

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