#9C8A27#9C8A27

#9C8A27 is a light, moderate yellow. Relative luminance 0.254; OKLCH L 63.2% C 0.117 H 98.5°. Best body text is #000000 at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#9C8A27
RGBrgb(156, 138, 39)
HSLhsl(51, 60%, 38%)
HSVhsv(51, 75%, 61%)
CMYKcmyk(0%, 11.5%, 75%, 38.8%)
CIE-LABlab(57.46, -4.29, 52.27)
CIE-LCHlch(57.46, 52.45, 94.70°)
OKLaboklab(63.18% -0.0173 0.1153)
OKLCHoklch(63.18% 0.117 98.5)
XYZxyz(23.1661, 25.3925, 5.6001)
Luminance0.2539 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C8A27 #27399C
analogous
#9C4F27 #9C8A27 #739C27
triadic
#9C8A27 #279C8A #8A279C
tetradic
#9C8A27 #279C4F #27399C #9C2773
square
#9C8A27 #279C4F #27399C #9C2773
split-complementary
#9C8A27 #27739C #4F279C
monochromatic
#3A330F #6B5F1B #9C8A27 #CCB534 #D8C765

Accessibility & contrast

On white

3.45
#9C8A27 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.08
#9C8A27 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9C8A27
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C8A27#FFFFFF#000000##000000
##9C8A271.003.456.086.08
#FFFFFF3.451.0021.0021.00
#0000006.0821.001.001.00
##0000006.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#988616
Deuteranopia (green-blind)
#9D8D2D
Tritanopia (blue-blind)
#A97F77
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #9c8a27;
/* rgb */ color: rgb(156, 138, 39);
/* oklch */ color: oklch(63.2% 0.117 98.5);
Tailwind
colors: {
  custom: {
    50: '#bdab69',
    500: '#9c8a27',
    950: '#000000',
  },
}
SCSS
$custom: #9c8a27;
$custom-light: #bdab69;
$custom-dark: #000000;
JSON
{
  "hex": "#9c8a27",
  "rgb": {
    "r": 156,
    "g": 138,
    "b": 39
  },
  "hsl": {
    "h": 50.769,
    "s": 60,
    "l": 38.235
  },
  "oklch": {
    "l": 0.6318,
    "c": 0.11654,
    "h": 98.5
  },
  "luminance": 0.25391
}

Semantic roles & 50–950 ramp

primary
#9C8A27
secondary
#616FBE
accent
#5DE345
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#121007
muted
#817F7A

Preview Lab

Preview with #9C8A27

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

Preview Lab → · Contrast checker → · Palette generator →

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