#9D8A28#9D8A28

#9D8A28 is a light, moderate yellow. Relative luminance 0.255; OKLCH L 63.3% C 0.116 H 97.8°. Best body text is #000000 at 6.10:1 contrast (WCAG AA passes).

Color values

HEX#9D8A28
RGBrgb(157, 138, 40)
HSLhsl(50, 59%, 39%)
HSVhsv(50, 75%, 62%)
CMYKcmyk(0%, 12.1%, 74.5%, 38.4%)
CIE-LABlab(57.56, -3.79, 52.02)
CIE-LCHlch(57.56, 52.16, 94.17°)
OKLaboklab(63.29% -0.0158 0.1149)
OKLCHoklch(63.29% 0.116 97.8)
XYZxyz(23.3773, 25.4994, 5.6976)
Luminance0.2550 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D8A28 #283B9D
analogous
#9D4F28 #9D8A28 #759D28
triadic
#9D8A28 #289D8A #8A289D
tetradic
#9D8A28 #289D4F #283B9D #9D2875
square
#9D8A28 #289D4F #283B9D #9D2875
split-complementary
#9D8A28 #28759D #4F289D
monochromatic
#3B340F #6C5F1C #9D8A28 #CCB436 #D8C667

Accessibility & contrast

On white

3.44
#9D8A28 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.10
#9D8A28 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D8A28
6.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D8A28#FFFFFF#000000##000000
##9D8A281.003.446.106.10
#FFFFFF3.441.0021.0021.00
#0000006.1021.001.001.00
##0000006.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#988717
Deuteranopia (green-blind)
#9D8D2E
Tritanopia (blue-blind)
#AA7F77
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #9d8a28;
/* rgb */ color: rgb(157, 138, 40);
/* oklch */ color: oklch(63.3% 0.116 97.8);
Tailwind
colors: {
  custom: {
    50: '#bdab69',
    500: '#9d8a28',
    950: '#000000',
  },
}
SCSS
$custom: #9d8a28;
$custom-light: #bdab69;
$custom-dark: #000000;
JSON
{
  "hex": "#9d8a28",
  "rgb": {
    "r": 157,
    "g": 138,
    "b": 40
  },
  "hsl": {
    "h": 50.256,
    "s": 59.391,
    "l": 38.627
  },
  "oklch": {
    "l": 0.63286,
    "c": 0.11595,
    "h": 97.8
  },
  "luminance": 0.25498
}

Semantic roles & 50–950 ramp

primary
#9D8A28
secondary
#6271BE
accent
#5FE345
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131007
muted
#827F7A

Preview Lab

Preview with #9D8A28

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

Preview Lab → · Contrast checker → · Palette generator →

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