#9C8A28#9C8A28

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

Color values

HEX#9C8A28
RGBrgb(156, 138, 40)
HSLhsl(51, 59%, 38%)
HSVhsv(51, 74%, 61%)
CMYKcmyk(0%, 11.5%, 74.4%, 38.8%)
CIE-LABlab(57.46, -4.25, 51.89)
CIE-LCHlch(57.46, 52.07, 94.68°)
OKLaboklab(63.19% -0.017 0.1146)
OKLCHoklch(63.19% 0.116 98.5)
XYZxyz(23.1829, 25.3992, 5.6885)
Luminance0.2540 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C8A28 #283A9C
analogous
#9C5028 #9C8A28 #749C28
triadic
#9C8A28 #289C8A #8A289C
tetradic
#9C8A28 #289C50 #283A9C #9C2874
square
#9C8A28 #289C50 #283A9C #9C2874
split-complementary
#9C8A28 #28749C #50289C
monochromatic
#3B340F #6B5F1C #9C8A28 #CBB436 #D8C667

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9C8A28#FFFFFF#000000##000000
##9C8A281.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)
#988617
Deuteranopia (green-blind)
#9D8D2E
Tritanopia (blue-blind)
#A87F77
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #9c8a28;
/* rgb */ color: rgb(156, 138, 40);
/* oklch */ color: oklch(63.2% 0.116 98.5);
Tailwind
colors: {
  custom: {
    50: '#bdab69',
    500: '#9c8a28',
    950: '#000000',
  },
}
SCSS
$custom: #9c8a28;
$custom-light: #bdab69;
$custom-dark: #000000;
JSON
{
  "hex": "#9c8a28",
  "rgb": {
    "r": 156,
    "g": 138,
    "b": 40
  },
  "hsl": {
    "h": 50.69,
    "s": 59.184,
    "l": 38.431
  },
  "oklch": {
    "l": 0.63187,
    "c": 0.1159,
    "h": 98.5
  },
  "luminance": 0.25398
}

Semantic roles & 50–950 ramp

primary
#9C8A28
secondary
#6270BE
accent
#5EE245
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#121007
muted
#817F7A

Preview Lab

Preview with #9C8A28

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

Preview Lab → · Contrast checker → · Palette generator →

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