#9C8B1F#9C8B1F

#9C8B1F is a light, vivid yellow. Relative luminance 0.256; OKLCH L 63.3% C 0.122 H 99.7°. Best body text is #000000 at 6.13:1 contrast (WCAG AA passes).

Color values

HEX#9C8B1F
RGBrgb(156, 139, 31)
HSLhsl(52, 67%, 37%)
HSVhsv(52, 80%, 61%)
CMYKcmyk(0%, 10.9%, 80.1%, 38.8%)
CIE-LABlab(57.69, -5.18, 55.32)
CIE-LCHlch(57.69, 55.56, 95.35°)
OKLaboklab(63.35% -0.0206 0.1201)
OKLCHoklch(63.35% 0.122 99.7)
XYZxyz(23.1914, 25.6332, 5.0222)
Luminance0.2563 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C8B1F #1F309C
analogous
#9C4D1F #9C8B1F #6F9C1F
triadic
#9C8B1F #1F9C8B #8B1F9C
tetradic
#9C8B1F #1F9C4D #1F309C #9C1F6F
square
#9C8B1F #1F9C4D #1F309C #9C1F6F
split-complementary
#9C8B1F #1F6F9C #4D1F9C
monochromatic
#36300B #695E15 #9C8B1F #CFB829 #DECC58

Accessibility & contrast

On white

3.43
#9C8B1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##9C8B1F#FFFFFF#000000##000000
##9C8B1F1.003.436.136.13
#FFFFFF3.431.0021.0021.00
#0000006.1321.001.001.00
##0000006.1321.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9c8b1f;
/* rgb */ color: rgb(156, 139, 31);
/* oklch */ color: oklch(63.3% 0.122 99.7);
Tailwind
colors: {
  custom: {
    50: '#bdac65',
    500: '#9c8b1f',
    950: '#000000',
  },
}
SCSS
$custom: #9c8b1f;
$custom-light: #bdac65;
$custom-dark: #000000;
JSON
{
  "hex": "#9c8b1f",
  "rgb": {
    "r": 156,
    "g": 139,
    "b": 31
  },
  "hsl": {
    "h": 51.84,
    "s": 66.845,
    "l": 36.667
  },
  "oklch": {
    "l": 0.63349,
    "c": 0.12188,
    "h": 99.7
  },
  "luminance": 0.25632
}

Semantic roles & 50–950 ramp

primary
#9C8B1F
secondary
#5564C1
accent
#55EA3E
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131006
muted
#827F7A

Preview Lab

Preview with #9C8B1F

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

Preview Lab → · Contrast checker → · Palette generator →

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