#8D8A28#8D8A28

#8D8A28 is a mid, moderate yellow. Relative luminance 0.240; OKLCH L 61.8% C 0.117 H 107.6°. Best body text is #000000 at 5.80:1 contrast (WCAG AA passes).

Color values

HEX#8D8A28
RGBrgb(141, 138, 40)
HSLhsl(58, 56%, 35%)
HSVhsv(58, 72%, 55%)
CMYKcmyk(0%, 2.1%, 71.6%, 44.7%)
CIE-LABlab(56.08, -11.05, 50.08)
CIE-LCHlch(56.08, 51.28, 102.45°)
OKLaboklab(61.76% -0.0354 0.1114)
OKLCHoklch(61.76% 0.117 107.6)
XYZxyz(20.4567, 23.9936, 5.5607)
Luminance0.2399 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D8A28 #282B8D
analogous
#8D5728 #8D8A28 #5D8D28
triadic
#8D8A28 #288D8A #8A288D
tetradic
#8D8A28 #288D57 #282B8D #8D285D
square
#8D8A28 #288D57 #282B8D #8D285D
split-complementary
#8D8A28 #285D8D #57288D
monochromatic
#2E2D0D #5D5B1A #8D8A28 #BDB936 #D1CE5E

Accessibility & contrast

On white

3.62
#8D8A28 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.80
#8D8A28 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8D8A28
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D8A28#FFFFFF#000000##000000
##8D8A281.003.625.805.80
#FFFFFF3.621.0021.0021.00
#0000005.8021.001.001.00
##0000005.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#968418
Deuteranopia (green-blind)
#98882F
Tritanopia (blue-blind)
#978177
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #8d8a28;
/* rgb */ color: rgb(141, 138, 40);
/* oklch */ color: oklch(61.8% 0.117 107.6);
Tailwind
colors: {
  custom: {
    50: '#b1ab69',
    500: '#8d8a28',
    950: '#000000',
  },
}
SCSS
$custom: #8d8a28;
$custom-light: #b1ab69;
$custom-dark: #000000;
JSON
{
  "hex": "#8d8a28",
  "rgb": {
    "r": 141,
    "g": 138,
    "b": 40
  },
  "hsl": {
    "h": 58.218,
    "s": 55.801,
    "l": 35.49
  },
  "oklch": {
    "l": 0.61759,
    "c": 0.11685,
    "h": 107.6
  },
  "luminance": 0.23993
}

Semantic roles & 50–950 ramp

primary
#8D8A28
secondary
#5A5DB7
accent
#4DDF49
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111007
muted
#807F7A

Preview Lab

Preview with #8D8A28

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

Preview Lab → · Contrast checker → · Palette generator →

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