#9C8A2F#9C8A2F

#9C8A2F is a light, moderate yellow. Relative luminance 0.255; OKLCH L 63.2% C 0.111 H 97.9°. Best body text is #000000 at 6.09:1 contrast (WCAG AA passes).

Color values

HEX#9C8A2F
RGBrgb(156, 138, 47)
HSLhsl(50, 54%, 40%)
HSVhsv(50, 70%, 61%)
CMYKcmyk(0%, 11.5%, 69.9%, 38.8%)
CIE-LABlab(57.51, -3.88, 49.09)
CIE-LCHlch(57.51, 49.24, 94.52°)
OKLaboklab(63.24% -0.0152 0.11)
OKLCHoklch(63.24% 0.111 97.9)
XYZxyz(23.3130, 25.4513, 6.3734)
Luminance0.2545 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C8A2F #2F419C
analogous
#9C542F #9C8A2F #779C2F
triadic
#9C8A2F #2F9C8A #8A2F9C
tetradic
#9C8A2F #2F9C54 #2F419C #9C2F77
square
#9C8A2F #2F9C54 #2F419C #9C2F77
split-complementary
#9C8A2F #2F779C #542F9C
monochromatic
#3E3713 #6D6021 #9C8A2F #C6B042 #D4C471

Accessibility & contrast

On white

3.45
#9C8A2F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.09
#9C8A2F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9C8A2F
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C8A2F#FFFFFF#000000##000000
##9C8A2F1.003.456.096.09
#FFFFFF3.451.0021.0021.00
#0000006.0921.001.001.00
##0000006.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#988722
Deuteranopia (green-blind)
#9C8D34
Tritanopia (blue-blind)
#A88077
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #9c8a2f;
/* rgb */ color: rgb(156, 138, 47);
/* oklch */ color: oklch(63.2% 0.111 97.9);
Tailwind
colors: {
  custom: {
    50: '#bcab6d',
    500: '#9c8a2f',
    950: '#000000',
  },
}
SCSS
$custom: #9c8a2f;
$custom-light: #bcab6d;
$custom-dark: #000000;
JSON
{
  "hex": "#9c8a2f",
  "rgb": {
    "r": 156,
    "g": 138,
    "b": 47
  },
  "hsl": {
    "h": 50.092,
    "s": 53.695,
    "l": 39.804
  },
  "oklch": {
    "l": 0.63243,
    "c": 0.11108,
    "h": 97.9
  },
  "luminance": 0.2545
}

Semantic roles & 50–950 ramp

primary
#9C8A2F
secondary
#6B78BC
accent
#63DD4B
background
#FCFAF6
surface
#F8F4EC
border
#D1CEC7
text
#121007
muted
#817F7A

Preview Lab

Preview with #9C8A2F

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

Preview Lab → · Contrast checker → · Palette generator →

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