#9C8D28#9C8D28

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

Color values

HEX#9C8D28
RGBrgb(156, 141, 40)
HSLhsl(52, 59%, 38%)
HSVhsv(52, 74%, 61%)
CMYKcmyk(0%, 9.6%, 74.4%, 38.8%)
CIE-LABlab(58.29, -5.88, 52.69)
CIE-LCHlch(58.29, 53.02, 96.37°)
OKLaboklab(63.85% -0.0217 0.1163)
OKLCHoklch(63.85% 0.118 100.6)
XYZxyz(23.6193, 26.2720, 5.8340)
Luminance0.2627 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C8D28 #28379C
analogous
#9C5328 #9C8D28 #719C28
triadic
#9C8D28 #289C8D #8D289C
tetradic
#9C8D28 #289C53 #28379C #9C2871
square
#9C8D28 #289C53 #28379C #9C2871
split-complementary
#9C8D28 #28719C #53289C
monochromatic
#3B350F #6B611C #9C8D28 #CBB836 #D8C967

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9C8D28#FFFFFF#000000##000000
##9C8D281.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)
#9B8916
Deuteranopia (green-blind)
#9F8F2F
Tritanopia (blue-blind)
#A88279
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #9c8d28;
/* rgb */ color: rgb(156, 141, 40);
/* oklch */ color: oklch(63.8% 0.118 100.6);
Tailwind
colors: {
  custom: {
    50: '#bdae69',
    500: '#9c8d28',
    950: '#000000',
  },
}
SCSS
$custom: #9c8d28;
$custom-light: #bdae69;
$custom-dark: #000000;
JSON
{
  "hex": "#9c8d28",
  "rgb": {
    "r": 156,
    "g": 141,
    "b": 40
  },
  "hsl": {
    "h": 52.241,
    "s": 59.184,
    "l": 38.431
  },
  "oklch": {
    "l": 0.63847,
    "c": 0.11834,
    "h": 100.6
  },
  "luminance": 0.26271
}

Semantic roles & 50–950 ramp

primary
#9C8D28
secondary
#626EBE
accent
#5AE245
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#121007
muted
#817F7A

Preview Lab

Preview with #9C8D28

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

Preview Lab → · Contrast checker → · Palette generator →

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