#9D8A27#9D8A27

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

Color values

HEX#9D8A27
RGBrgb(157, 138, 39)
HSLhsl(50, 60%, 38%)
HSVhsv(50, 75%, 62%)
CMYKcmyk(0%, 12.1%, 75.2%, 38.4%)
CIE-LABlab(57.55, -3.84, 52.40)
CIE-LCHlch(57.55, 52.54, 94.19°)
OKLaboklab(63.28% -0.016 0.1155)
OKLCHoklch(63.28% 0.117 97.9)
XYZxyz(23.3605, 25.4927, 5.6092)
Luminance0.2549 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D8A27 #273A9D
analogous
#9D4F27 #9D8A27 #759D27
triadic
#9D8A27 #279D8A #8A279D
tetradic
#9D8A27 #279D4F #273A9D #9D2775
square
#9D8A27 #279D4F #273A9D #9D2775
split-complementary
#9D8A27 #27759D #4F279D
monochromatic
#3B340F #6C5F1B #9D8A27 #CDB435 #D9C666

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9D8A27#FFFFFF#000000##000000
##9D8A271.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)
#988716
Deuteranopia (green-blind)
#9D8D2D
Tritanopia (blue-blind)
#AA7F77
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #9d8a27;
/* rgb */ color: rgb(157, 138, 39);
/* oklch */ color: oklch(63.3% 0.117 97.9);
Tailwind
colors: {
  custom: {
    50: '#beab69',
    500: '#9d8a27',
    950: '#000000',
  },
}
SCSS
$custom: #9d8a27;
$custom-light: #beab69;
$custom-dark: #000000;
JSON
{
  "hex": "#9d8a27",
  "rgb": {
    "r": 157,
    "g": 138,
    "b": 39
  },
  "hsl": {
    "h": 50.339,
    "s": 60.204,
    "l": 38.431
  },
  "oklch": {
    "l": 0.63279,
    "c": 0.11658,
    "h": 97.9
  },
  "luminance": 0.25492
}

Semantic roles & 50–950 ramp

primary
#9D8A27
secondary
#6170BF
accent
#5EE344
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131007
muted
#827F7A

Preview Lab

Preview with #9D8A27

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

Preview Lab → · Contrast checker → · Palette generator →

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