#9C8C2F#9C8C2F

#9C8C2F is a light, moderate yellow. Relative luminance 0.260; OKLCH L 63.7% C 0.113 H 99.4°. Best body text is #000000 at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#9C8C2F
RGBrgb(156, 140, 47)
HSLhsl(51, 54%, 40%)
HSVhsv(51, 70%, 61%)
CMYKcmyk(0%, 10.3%, 69.9%, 38.8%)
CIE-LABlab(58.07, -4.97, 49.66)
CIE-LCHlch(58.07, 49.90, 95.72°)
OKLaboklab(63.68% -0.0183 0.1112)
OKLCHoklch(63.68% 0.113 99.4)
XYZxyz(23.6025, 26.0304, 6.4699)
Luminance0.2603 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C8C2F #2F3F9C
analogous
#9C562F #9C8C2F #759C2F
triadic
#9C8C2F #2F9C8C #8C2F9C
tetradic
#9C8C2F #2F9C56 #2F3F9C #9C2F75
square
#9C8C2F #2F9C56 #2F3F9C #9C2F75
split-complementary
#9C8C2F #2F759C #562F9C
monochromatic
#3E3813 #6D6221 #9C8C2F #C6B342 #D4C671

Accessibility & contrast

On white

3.38
#9C8C2F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.21
#9C8C2F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9C8C2F
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C8C2F#FFFFFF#000000##000000
##9C8C2F1.003.386.216.21
#FFFFFF3.381.0021.0021.00
#0000006.2121.001.001.00
##0000006.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#9A8822
Deuteranopia (green-blind)
#9E8E34
Tritanopia (blue-blind)
#A88279
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #9c8c2f;
/* rgb */ color: rgb(156, 140, 47);
/* oklch */ color: oklch(63.7% 0.113 99.4);
Tailwind
colors: {
  custom: {
    50: '#bcad6d',
    500: '#9c8c2f',
    950: '#000000',
  },
}
SCSS
$custom: #9c8c2f;
$custom-light: #bcad6d;
$custom-dark: #000000;
JSON
{
  "hex": "#9c8c2f",
  "rgb": {
    "r": 156,
    "g": 140,
    "b": 47
  },
  "hsl": {
    "h": 51.193,
    "s": 53.695,
    "l": 39.804
  },
  "oklch": {
    "l": 0.63682,
    "c": 0.11273,
    "h": 99.4
  },
  "luminance": 0.26029
}

Semantic roles & 50–950 ramp

primary
#9C8C2F
secondary
#6B77BC
accent
#60DD4B
background
#FCFAF6
surface
#F8F4EC
border
#D1CEC7
text
#121007
muted
#817F7A

Preview Lab

Preview with #9C8C2F

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

Preview Lab → · Contrast checker → · Palette generator →

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