#9C8A1F#9C8A1F

#9C8A1F is a light, vivid yellow. Relative luminance 0.253; OKLCH L 63.1% C 0.121 H 99.0°. Best body text is #000000 at 6.07:1 contrast (WCAG AA passes).

Color values

HEX#9C8A1F
RGBrgb(156, 138, 31)
HSLhsl(51, 67%, 37%)
HSVhsv(51, 80%, 61%)
CMYKcmyk(0%, 11.5%, 80.1%, 38.8%)
CIE-LABlab(57.41, -4.63, 55.07)
CIE-LCHlch(57.41, 55.27, 94.81°)
OKLaboklab(63.13% -0.019 0.1196)
OKLCHoklch(63.13% 0.121 99)
XYZxyz(23.0473, 25.3450, 4.9742)
Luminance0.2534 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C8A1F #1F319C
analogous
#9C4C1F #9C8A1F #709C1F
triadic
#9C8A1F #1F9C8A #8A1F9C
tetradic
#9C8A1F #1F9C4C #1F319C #9C1F70
square
#9C8A1F #1F9C4C #1F319C #9C1F70
split-complementary
#9C8A1F #1F709C #4C1F9C
monochromatic
#36300B #695D15 #9C8A1F #CFB729 #DECA58

Accessibility & contrast

On white

3.46
#9C8A1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.07
#9C8A1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9C8A1F
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C8A1F#FFFFFF#000000##000000
##9C8A1F1.003.466.076.07
#FFFFFF3.461.0021.0021.00
#0000006.0721.001.001.00
##0000006.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#988603
Deuteranopia (green-blind)
#9D8D27
Tritanopia (blue-blind)
#A97F76
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #9c8a1f;
/* rgb */ color: rgb(156, 138, 31);
/* oklch */ color: oklch(63.1% 0.121 99.0);
Tailwind
colors: {
  custom: {
    50: '#bdab65',
    500: '#9c8a1f',
    950: '#000000',
  },
}
SCSS
$custom: #9c8a1f;
$custom-light: #bdab65;
$custom-dark: #000000;
JSON
{
  "hex": "#9c8a1f",
  "rgb": {
    "r": 156,
    "g": 138,
    "b": 31
  },
  "hsl": {
    "h": 51.36,
    "s": 66.845,
    "l": 36.667
  },
  "oklch": {
    "l": 0.63129,
    "c": 0.1211,
    "h": 99
  },
  "luminance": 0.25344
}

Semantic roles & 50–950 ramp

primary
#9C8A1F
secondary
#5565C1
accent
#57EA3E
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131006
muted
#827F7A

Preview Lab

Preview with #9C8A1F

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

Preview Lab → · Contrast checker → · Palette generator →

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