#9D8D27#9D8D27

#9D8D27 is a light, moderate yellow. Relative luminance 0.264; OKLCH L 63.9% C 0.119 H 100.0°. Best body text is #000000 at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#9D8D27
RGBrgb(157, 141, 39)
HSLhsl(52, 60%, 38%)
HSVhsv(52, 75%, 62%)
CMYKcmyk(0%, 10.2%, 75.2%, 38.4%)
CIE-LABlab(58.38, -5.48, 53.19)
CIE-LCHlch(58.38, 53.47, 95.88°)
OKLaboklab(63.94% -0.0207 0.1172)
OKLCHoklch(63.94% 0.119 100)
XYZxyz(23.7969, 26.3655, 5.7546)
Luminance0.2636 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D8D27 #27379D
analogous
#9D5227 #9D8D27 #729D27
triadic
#9D8D27 #279D8D #8D279D
tetradic
#9D8D27 #279D52 #27379D #9D2772
square
#9D8D27 #279D52 #27379D #9D2772
split-complementary
#9D8D27 #27729D #52279D
monochromatic
#3B350F #6C611B #9D8D27 #CDB835 #D9C966

Accessibility & contrast

On white

3.35
#9D8D27 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.27
#9D8D27 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D8D27
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D8D27#FFFFFF#000000##000000
##9D8D271.003.356.276.27
#FFFFFF3.351.0021.0021.00
#0000006.2721.001.001.00
##0000006.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#9B8914
Deuteranopia (green-blind)
#9F8F2E
Tritanopia (blue-blind)
#A98279
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #9d8d27;
/* rgb */ color: rgb(157, 141, 39);
/* oklch */ color: oklch(63.9% 0.119 100.0);
Tailwind
colors: {
  custom: {
    50: '#bdae69',
    500: '#9d8d27',
    950: '#000000',
  },
}
SCSS
$custom: #9d8d27;
$custom-light: #bdae69;
$custom-dark: #000000;
JSON
{
  "hex": "#9d8d27",
  "rgb": {
    "r": 157,
    "g": 141,
    "b": 39
  },
  "hsl": {
    "h": 51.864,
    "s": 60.204,
    "l": 38.431
  },
  "oklch": {
    "l": 0.63937,
    "c": 0.11897,
    "h": 100
  },
  "luminance": 0.26364
}

Semantic roles & 50–950 ramp

primary
#9D8D27
secondary
#616EBF
accent
#5AE344
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131007
muted
#827F7A

Preview Lab

Preview with #9D8D27

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

Preview Lab → · Contrast checker → · Palette generator →

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