#8D8A42#8D8A42

#8D8A42 is a light, moderate yellow. Relative luminance 0.242; OKLCH L 62.0% C 0.094 H 106.7°. Best body text is #000000 at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#8D8A42
RGBrgb(141, 138, 66)
HSLhsl(58, 36%, 41%)
HSVhsv(58, 53%, 55%)
CMYKcmyk(0%, 2.1%, 53.2%, 44.7%)
CIE-LABlab(56.32, -9.18, 38.48)
CIE-LCHlch(56.32, 39.56, 103.42°)
OKLaboklab(62.03% -0.0271 0.0905)
OKLCHoklch(62.03% 0.094 106.7)
XYZxyz(21.0569, 24.2336, 8.7215)
Luminance0.2423 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D8A42 #42458D
analogous
#8D6442 #8D8A42 #6A8D42
triadic
#8D8A42 #428D8A #8A428D
tetradic
#8D8A42 #428D64 #42458D #8D426A
square
#8D8A42 #428D64 #42458D #8D426A
split-complementary
#8D8A42 #426A8D #64428D
monochromatic
#3A381B #63612E #8D8A42 #B2AE5A #C5C384

Accessibility & contrast

On white

3.59
#8D8A42 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.85
#8D8A42 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8D8A42
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D8A42#FFFFFF#000000##000000
##8D8A421.003.595.855.85
#FFFFFF3.591.0021.0021.00
#0000005.8521.001.001.00
##0000005.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#94853B
Deuteranopia (green-blind)
#968846
Tritanopia (blue-blind)
#96827A
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #8d8a42;
/* rgb */ color: rgb(141, 138, 66);
/* oklch */ color: oklch(62.0% 0.094 106.7);
Tailwind
colors: {
  custom: {
    50: '#b0ac78',
    500: '#8d8a42',
    950: '#000000',
  },
}
SCSS
$custom: #8d8a42;
$custom-light: #b0ac78;
$custom-dark: #000000;
JSON
{
  "hex": "#8d8a42",
  "rgb": {
    "r": 141,
    "g": 138,
    "b": 66
  },
  "hsl": {
    "h": 57.6,
    "s": 36.232,
    "l": 40.588
  },
  "oklch": {
    "l": 0.62027,
    "c": 0.09445,
    "h": 106.7
  },
  "luminance": 0.24233
}

Semantic roles & 50–950 ramp

primary
#8D8A42
secondary
#7B7DB0
accent
#60CC5C
background
#FBFAF7
surface
#F6F4ED
border
#D0CEC8
text
#111009
muted
#807F7B

Preview Lab

Preview with #8D8A42

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

Preview Lab → · Contrast checker → · Palette generator →

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