#9C8D27#9C8D27

#9C8D27 is a light, moderate yellow. Relative luminance 0.263; OKLCH L 63.8% C 0.119 H 100.6°. Best body text is #000000 at 6.25:1 contrast (WCAG AA passes).

Color values

HEX#9C8D27
RGBrgb(156, 141, 39)
HSLhsl(52, 60%, 38%)
HSVhsv(52, 75%, 61%)
CMYKcmyk(0%, 9.6%, 75%, 38.8%)
CIE-LABlab(58.29, -5.93, 53.07)
CIE-LCHlch(58.29, 53.40, 96.38°)
OKLaboklab(63.84% -0.0219 0.1169)
OKLCHoklch(63.84% 0.119 100.6)
XYZxyz(23.6025, 26.2653, 5.7455)
Luminance0.2626 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C8D27 #27369C
analogous
#9C5227 #9C8D27 #709C27
triadic
#9C8D27 #279C8D #8D279C
tetradic
#9C8D27 #279C52 #27369C #9C2770
square
#9C8D27 #279C52 #27369C #9C2770
split-complementary
#9C8D27 #27709C #52279C
monochromatic
#3A340F #6B611B #9C8D27 #CCB934 #D8CA65

Accessibility & contrast

On white

3.36
#9C8D27 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.25
#9C8D27 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9C8D27
6.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C8D27#FFFFFF#000000##000000
##9C8D271.003.366.256.25
#FFFFFF3.361.0021.0021.00
#0000006.2521.001.001.00
##0000006.2521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9c8d27;
/* rgb */ color: rgb(156, 141, 39);
/* oklch */ color: oklch(63.8% 0.119 100.6);
Tailwind
colors: {
  custom: {
    50: '#bdae69',
    500: '#9c8d27',
    950: '#000000',
  },
}
SCSS
$custom: #9c8d27;
$custom-light: #bdae69;
$custom-dark: #000000;
JSON
{
  "hex": "#9c8d27",
  "rgb": {
    "r": 156,
    "g": 141,
    "b": 39
  },
  "hsl": {
    "h": 52.308,
    "s": 60,
    "l": 38.235
  },
  "oklch": {
    "l": 0.6384,
    "c": 0.11898,
    "h": 100.6
  },
  "luminance": 0.26264
}

Semantic roles & 50–950 ramp

primary
#9C8D27
secondary
#616DBE
accent
#59E345
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#121007
muted
#817F7A

Preview Lab

Preview with #9C8D27

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

Preview Lab → · Contrast checker → · Palette generator →

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