#8D8A51#8D8A51

#8D8A51 is a light, moderate yellow. Relative luminance 0.244; OKLCH L 62.3% C 0.078 H 105.8°. Best body text is #000000 at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#8D8A51
RGBrgb(141, 138, 81)
HSLhsl(57, 27%, 44%)
HSVhsv(57, 43%, 55%)
CMYKcmyk(0%, 2.1%, 42.6%, 44.7%)
CIE-LABlab(56.52, -7.66, 30.87)
CIE-LCHlch(56.52, 31.81, 103.93°)
OKLaboklab(62.25% -0.0212 0.0749)
OKLCHoklch(62.25% 0.078 105.8)
XYZxyz(21.5586, 24.4343, 11.3636)
Luminance0.2443 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D8A51 #51548D
analogous
#8D6C51 #8D8A51 #728D51
triadic
#8D8A51 #518D8A #8A518D
tetradic
#8D8A51 #518D6C #51548D #8D5172
square
#8D8A51 #518D6C #51548D #8D5172
split-complementary
#8D8A51 #51728D #6C518D
monochromatic
#3F3E24 #66643B #8D8A51 #ACA96F #C3C096

Accessibility & contrast

On white

3.57
#8D8A51 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.89
#8D8A51 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8D8A51
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D8A51#FFFFFF#000000##000000
##8D8A511.003.575.895.89
#FFFFFF3.571.0021.0021.00
#0000005.8921.001.001.00
##0000005.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#93864D
Deuteranopia (green-blind)
#948953
Tritanopia (blue-blind)
#95837C
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #8d8a51;
/* rgb */ color: rgb(141, 138, 81);
/* oklch */ color: oklch(62.3% 0.078 105.8);
Tailwind
colors: {
  custom: {
    50: '#afac83',
    500: '#8d8a51',
    950: '#000000',
  },
}
SCSS
$custom: #8d8a51;
$custom-light: #afac83;
$custom-dark: #000000;
JSON
{
  "hex": "#8d8a51",
  "rgb": {
    "r": 141,
    "g": 138,
    "b": 81
  },
  "hsl": {
    "h": 57,
    "s": 27.027,
    "l": 43.529
  },
  "oklch": {
    "l": 0.6225,
    "c": 0.07782,
    "h": 105.8
  },
  "luminance": 0.24434
}

Semantic roles & 50–950 ramp

primary
#8D8A51
secondary
#8A8CAF
accent
#69C364
background
#FAFAF8
surface
#F5F4EF
border
#CFCECA
text
#10100A
muted
#7F7F7C

Preview Lab

Preview with #8D8A51

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

Preview Lab → · Contrast checker → · Palette generator →

#8D8A51 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva