#9C8728#9C8728

#9C8728 is a light, moderate yellow. Relative luminance 0.245; OKLCH L 62.5% C 0.114 H 96.2°. Best body text is #000000 at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#9C8728
RGBrgb(156, 135, 40)
HSLhsl(49, 59%, 38%)
HSVhsv(49, 74%, 61%)
CMYKcmyk(0%, 13.5%, 74.4%, 38.8%)
CIE-LABlab(56.63, -2.60, 51.09)
CIE-LCHlch(56.63, 51.16, 92.91°)
OKLaboklab(62.53% -0.0123 0.1129)
OKLCHoklch(62.53% 0.114 96.2)
XYZxyz(22.7584, 24.5503, 5.5470)
Luminance0.2455 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C8728 #283D9C
analogous
#9C4D28 #9C8728 #779C28
triadic
#9C8728 #289C87 #87289C
tetradic
#9C8728 #289C4D #283D9C #9C2877
square
#9C8728 #289C4D #283D9C #9C2877
split-complementary
#9C8728 #28779C #4D289C
monochromatic
#3B330F #6B5D1C #9C8728 #CBB036 #D8C367

Accessibility & contrast

On white

3.55
#9C8728 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.91
#9C8728 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9C8728
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C8728#FFFFFF#000000##000000
##9C87281.003.555.915.91
#FFFFFF3.551.0021.0021.00
#0000005.9121.001.001.00
##0000005.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#958418
Deuteranopia (green-blind)
#9B8B2E
Tritanopia (blue-blind)
#A97C74
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #9c8728;
/* rgb */ color: rgb(156, 135, 40);
/* oklch */ color: oklch(62.5% 0.114 96.2);
Tailwind
colors: {
  custom: {
    50: '#bda969',
    500: '#9c8728',
    950: '#000000',
  },
}
SCSS
$custom: #9c8728;
$custom-light: #bda969;
$custom-dark: #000000;
JSON
{
  "hex": "#9c8728",
  "rgb": {
    "r": 156,
    "g": 135,
    "b": 40
  },
  "hsl": {
    "h": 49.138,
    "s": 59.184,
    "l": 38.431
  },
  "oklch": {
    "l": 0.62532,
    "c": 0.11361,
    "h": 96.2
  },
  "luminance": 0.24549
}

Semantic roles & 50–950 ramp

primary
#9C8728
secondary
#6273BE
accent
#62E245
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#120F07
muted
#817F7A

Preview Lab

Preview with #9C8728

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

Preview Lab → · Contrast checker → · Palette generator →

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