#51531F#51531F

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

Color values

HEX#51531F
RGBrgb(81, 83, 31)
HSLhsl(62, 46%, 22%)
HSVhsv(62, 63%, 33%)
CMYKcmyk(2.4%, 0%, 62.7%, 67.5%)
CIE-LABlab(34.06, -8.86, 29.52)
CIE-LCHlch(34.06, 30.82, 106.71°)
OKLaboklab(42.85% -0.0264 0.0682)
OKLCHoklch(42.85% 0.073 111.2)
XYZxyz(6.7341, 8.0349, 2.4922)
Luminance0.0804 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51531F #211F53
analogous
#533B1F #51531F #37531F
triadic
#51531F #1F5153 #531F51
tetradic
#51531F #1F533B #211F53 #531F37
square
#51531F #1F533B #211F53 #531F37
split-complementary
#51531F #1F3753 #3B1F53
monochromatic
#161608 #26260E #51531F #7C8030 #A8AC40

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##51531F#FFFFFF#000000##FFFFFF
##51531F1.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)
#594F19
Deuteranopia (green-blind)
#5A5122
Tritanopia (blue-blind)
#574E48
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #51531f;
/* rgb */ color: rgb(81, 83, 31);
/* oklch */ color: oklch(42.8% 0.073 111.2);
Tailwind
colors: {
  custom: {
    50: '#83835d',
    500: '#51531f',
    950: '#000000',
  },
}
SCSS
$custom: #51531f;
$custom-light: #83835d;
$custom-dark: #000000;
JSON
{
  "hex": "#51531f",
  "rgb": {
    "r": 81,
    "g": 83,
    "b": 31
  },
  "hsl": {
    "h": 62.308,
    "s": 45.614,
    "l": 22.353
  },
  "oklch": {
    "l": 0.42845,
    "c": 0.07311,
    "h": 111.2
  },
  "luminance": 0.08035
}

Semantic roles & 50–950 ramp

primary
#51531F
secondary
#494688
accent
#53D558
background
#F8F8F5
surface
#EFEFE9
border
#CACAC5
text
#0B0A04
muted
#7C7C79

Preview Lab

Preview with #51531F

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

Preview Lab → · Contrast checker → · Palette generator →

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