#9C8D1F#9C8D1F

#9C8D1F is a light, vivid yellow. Relative luminance 0.262; OKLCH L 63.8% C 0.123 H 101.0°. Best body text is #000000 at 6.24:1 contrast (WCAG AA passes).

Color values

HEX#9C8D1F
RGBrgb(156, 141, 31)
HSLhsl(53, 67%, 37%)
HSVhsv(53, 80%, 61%)
CMYKcmyk(0%, 9.6%, 80.1%, 38.8%)
CIE-LABlab(58.24, -6.27, 55.82)
CIE-LCHlch(58.24, 56.17, 96.41°)
OKLaboklab(63.79% -0.0236 0.1212)
OKLCHoklch(63.79% 0.123 101)
XYZxyz(23.4837, 26.2177, 5.1196)
Luminance0.2622 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C8D1F #1F2E9C
analogous
#9C4F1F #9C8D1F #6D9C1F
triadic
#9C8D1F #1F9C8D #8D1F9C
tetradic
#9C8D1F #1F9C4F #1F2E9C #9C1F6D
square
#9C8D1F #1F9C4F #1F2E9C #9C1F6D
split-complementary
#9C8D1F #1F6D9C #4F1F9C
monochromatic
#36310B #695F15 #9C8D1F #CFBB29 #DECE58

Accessibility & contrast

On white

3.36
#9C8D1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.24
#9C8D1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9C8D1F
6.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C8D1F#FFFFFF#000000##000000
##9C8D1F1.003.366.246.24
#FFFFFF3.361.0021.0021.00
#0000006.2421.001.001.00
##0000006.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#9B8901
Deuteranopia (green-blind)
#9F8F28
Tritanopia (blue-blind)
#A98279
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #9c8d1f;
/* rgb */ color: rgb(156, 141, 31);
/* oklch */ color: oklch(63.8% 0.123 101.0);
Tailwind
colors: {
  custom: {
    50: '#bdae65',
    500: '#9c8d1f',
    950: '#000000',
  },
}
SCSS
$custom: #9c8d1f;
$custom-light: #bdae65;
$custom-dark: #000000;
JSON
{
  "hex": "#9c8d1f",
  "rgb": {
    "r": 156,
    "g": 141,
    "b": 31
  },
  "hsl": {
    "h": 52.8,
    "s": 66.845,
    "l": 36.667
  },
  "oklch": {
    "l": 0.6379,
    "c": 0.12349,
    "h": 101
  },
  "luminance": 0.26217
}

Semantic roles & 50–950 ramp

primary
#9C8D1F
secondary
#5562C1
accent
#53EA3E
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131006
muted
#827F7A

Preview Lab

Preview with #9C8D1F

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

Preview Lab → · Contrast checker → · Palette generator →

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