#9C8B25#9C8B25

#9C8B25 is a light, moderate yellow. Relative luminance 0.257; OKLCH L 63.4% C 0.119 H 99.4°. Best body text is #000000 at 6.13:1 contrast (WCAG AA passes).

Color values

HEX#9C8B25
RGBrgb(156, 139, 37)
HSLhsl(51, 62%, 38%)
HSVhsv(51, 76%, 61%)
CMYKcmyk(0%, 10.9%, 76.3%, 38.8%)
CIE-LABlab(57.72, -4.93, 53.27)
CIE-LCHlch(57.72, 53.50, 95.29°)
OKLaboklab(63.39% -0.0193 0.117)
OKLCHoklch(63.39% 0.119 99.4)
XYZxyz(23.2780, 25.6679, 5.4782)
Luminance0.2567 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C8B25 #25369C
analogous
#9C5025 #9C8B25 #719C25
triadic
#9C8B25 #259C8B #8B259C
tetradic
#9C8B25 #259C50 #25369C #9C2571
square
#9C8B25 #259C50 #25369C #9C2571
split-complementary
#9C8B25 #25719C #50259C
monochromatic
#39330E #6B5F19 #9C8B25 #CDB731 #DAC962

Accessibility & contrast

On white

3.42
#9C8B25 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.13
#9C8B25 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9C8B25
6.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C8B25#FFFFFF#000000##000000
##9C8B251.003.426.136.13
#FFFFFF3.421.0021.0021.00
#0000006.1321.001.001.00
##0000006.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#998711
Deuteranopia (green-blind)
#9E8D2C
Tritanopia (blue-blind)
#A98077
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #9c8b25;
/* rgb */ color: rgb(156, 139, 37);
/* oklch */ color: oklch(63.4% 0.119 99.4);
Tailwind
colors: {
  custom: {
    50: '#bdac68',
    500: '#9c8b25',
    950: '#000000',
  },
}
SCSS
$custom: #9c8b25;
$custom-light: #bdac68;
$custom-dark: #000000;
JSON
{
  "hex": "#9c8b25",
  "rgb": {
    "r": 156,
    "g": 139,
    "b": 37
  },
  "hsl": {
    "h": 51.429,
    "s": 61.658,
    "l": 37.843
  },
  "oklch": {
    "l": 0.63386,
    "c": 0.11855,
    "h": 99.4
  },
  "luminance": 0.25667
}

Semantic roles & 50–950 ramp

primary
#9C8B25
secondary
#5E6CBF
accent
#5AE543
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131006
muted
#827F7A

Preview Lab

Preview with #9C8B25

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

Preview Lab → · Contrast checker → · Palette generator →

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