#9C8F28#9C8F28

#9C8F28 is a light, vivid yellow. Relative luminance 0.269; OKLCH L 64.3% C 0.120 H 101.9°. Best body text is #000000 at 6.37:1 contrast (WCAG AA passes).

Color values

HEX#9C8F28
RGBrgb(156, 143, 40)
HSLhsl(53, 59%, 38%)
HSVhsv(53, 74%, 61%)
CMYKcmyk(0%, 8.3%, 74.4%, 38.8%)
CIE-LABlab(58.85, -6.97, 53.23)
CIE-LCHlch(58.85, 53.68, 97.46°)
OKLaboklab(64.29% -0.0247 0.1175)
OKLCHoklch(64.29% 0.12 101.9)
XYZxyz(23.9169, 26.8671, 5.9331)
Luminance0.2687 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C8F28 #28359C
analogous
#9C5528 #9C8F28 #6F9C28
triadic
#9C8F28 #289C8F #8F289C
tetradic
#9C8F28 #289C55 #28359C #9C286F
square
#9C8F28 #289C55 #28359C #9C286F
split-complementary
#9C8F28 #286F9C #55289C
monochromatic
#3B360F #6B621C #9C8F28 #CBBB36 #D8CB67

Accessibility & contrast

On white

3.30
#9C8F28 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.37
#9C8F28 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9C8F28
6.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C8F28#FFFFFF#000000##000000
##9C8F281.003.306.376.37
#FFFFFF3.301.0021.0021.00
#0000006.3721.001.001.00
##0000006.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#9D8A16
Deuteranopia (green-blind)
#A0902F
Tritanopia (blue-blind)
#A8857B
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #9c8f28;
/* rgb */ color: rgb(156, 143, 40);
/* oklch */ color: oklch(64.3% 0.120 101.9);
Tailwind
colors: {
  custom: {
    50: '#bdaf6a',
    500: '#9c8f28',
    950: '#000000',
  },
}
SCSS
$custom: #9c8f28;
$custom-light: #bdaf6a;
$custom-dark: #000000;
JSON
{
  "hex": "#9c8f28",
  "rgb": {
    "r": 156,
    "g": 143,
    "b": 40
  },
  "hsl": {
    "h": 53.276,
    "s": 59.184,
    "l": 38.431
  },
  "oklch": {
    "l": 0.64289,
    "c": 0.12006,
    "h": 101.9
  },
  "luminance": 0.26866
}

Semantic roles & 50–950 ramp

primary
#9C8F28
secondary
#626CBE
accent
#57E245
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#121007
muted
#817F7A

Preview Lab

Preview with #9C8F28

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

Preview Lab → · Contrast checker → · Palette generator →

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