#9C8E28#9C8E28

#9C8E28 is a light, moderate yellow. Relative luminance 0.266; OKLCH L 64.1% C 0.119 H 101.2°. Best body text is #000000 at 6.31:1 contrast (WCAG AA passes).

Color values

HEX#9C8E28
RGBrgb(156, 142, 40)
HSLhsl(53, 59%, 38%)
HSVhsv(53, 74%, 61%)
CMYKcmyk(0%, 9%, 74.4%, 38.8%)
CIE-LABlab(58.57, -6.43, 52.96)
CIE-LCHlch(58.57, 53.35, 96.92°)
OKLaboklab(64.07% -0.0232 0.1169)
OKLCHoklch(64.07% 0.119 101.2)
XYZxyz(23.7674, 26.5682, 5.8833)
Luminance0.2657 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C8E28 #28369C
analogous
#9C5428 #9C8E28 #709C28
triadic
#9C8E28 #289C8E #8E289C
tetradic
#9C8E28 #289C54 #28369C #9C2870
square
#9C8E28 #289C54 #28369C #9C2870
split-complementary
#9C8E28 #28709C #54289C
monochromatic
#3B350F #6B621C #9C8E28 #CBB936 #D8CA67

Accessibility & contrast

On white

3.33
#9C8E28 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.31
#9C8E28 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9C8E28
6.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C8E28#FFFFFF#000000##000000
##9C8E281.003.336.316.31
#FFFFFF3.331.0021.0021.00
#0000006.3121.001.001.00
##0000006.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#9C8A16
Deuteranopia (green-blind)
#A08F2F
Tritanopia (blue-blind)
#A8837A
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #9c8e28;
/* rgb */ color: rgb(156, 142, 40);
/* oklch */ color: oklch(64.1% 0.119 101.2);
Tailwind
colors: {
  custom: {
    50: '#bdae69',
    500: '#9c8e28',
    950: '#000000',
  },
}
SCSS
$custom: #9c8e28;
$custom-light: #bdae69;
$custom-dark: #000000;
JSON
{
  "hex": "#9c8e28",
  "rgb": {
    "r": 156,
    "g": 142,
    "b": 40
  },
  "hsl": {
    "h": 52.759,
    "s": 59.184,
    "l": 38.431
  },
  "oklch": {
    "l": 0.64068,
    "c": 0.11919,
    "h": 101.2
  },
  "luminance": 0.26567
}

Semantic roles & 50–950 ramp

primary
#9C8E28
secondary
#626DBE
accent
#58E245
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#121007
muted
#817F7A

Preview Lab

Preview with #9C8E28

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

Preview Lab → · Contrast checker → · Palette generator →

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