#9C8C1F#9C8C1F

#9C8C1F is a light, vivid yellow. Relative luminance 0.259; OKLCH L 63.6% C 0.123 H 100.4°. Best body text is #000000 at 6.18:1 contrast (WCAG AA passes).

Color values

HEX#9C8C1F
RGBrgb(156, 140, 31)
HSLhsl(52, 67%, 37%)
HSVhsv(52, 80%, 61%)
CMYKcmyk(0%, 10.3%, 80.1%, 38.8%)
CIE-LABlab(57.97, -5.72, 55.57)
CIE-LCHlch(57.97, 55.86, 95.88°)
OKLaboklab(63.57% -0.0221 0.1207)
OKLCHoklch(63.57% 0.123 100.4)
XYZxyz(23.3369, 25.9242, 5.0707)
Luminance0.2592 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C8C1F #1F2F9C
analogous
#9C4E1F #9C8C1F #6E9C1F
triadic
#9C8C1F #1F9C8C #8C1F9C
tetradic
#9C8C1F #1F9C4E #1F2F9C #9C1F6E
square
#9C8C1F #1F9C4E #1F2F9C #9C1F6E
split-complementary
#9C8C1F #1F6E9C #4E1F9C
monochromatic
#36300B #695E15 #9C8C1F #CFBA29 #DECD58

Accessibility & contrast

On white

3.40
#9C8C1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.18
#9C8C1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9C8C1F
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C8C1F#FFFFFF#000000##000000
##9C8C1F1.003.406.186.18
#FFFFFF3.401.0021.0021.00
#0000006.1821.001.001.00
##0000006.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#9A8802
Deuteranopia (green-blind)
#9F8E27
Tritanopia (blue-blind)
#A98178
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #9c8c1f;
/* rgb */ color: rgb(156, 140, 31);
/* oklch */ color: oklch(63.6% 0.123 100.4);
Tailwind
colors: {
  custom: {
    50: '#bdad65',
    500: '#9c8c1f',
    950: '#000000',
  },
}
SCSS
$custom: #9c8c1f;
$custom-light: #bdad65;
$custom-dark: #000000;
JSON
{
  "hex": "#9c8c1f",
  "rgb": {
    "r": 156,
    "g": 140,
    "b": 31
  },
  "hsl": {
    "h": 52.32,
    "s": 66.845,
    "l": 36.667
  },
  "oklch": {
    "l": 0.63569,
    "c": 0.12267,
    "h": 100.4
  },
  "luminance": 0.25923
}

Semantic roles & 50–950 ramp

primary
#9C8C1F
secondary
#5563C1
accent
#54EA3E
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131006
muted
#827F7A

Preview Lab

Preview with #9C8C1F

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

Preview Lab → · Contrast checker → · Palette generator →

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