#9C8F2F#9C8F2F

#9C8F2F is a light, moderate yellow. Relative luminance 0.269; OKLCH L 64.3% C 0.115 H 101.5°. Best body text is #000000 at 6.38:1 contrast (WCAG AA passes).

Color values

HEX#9C8F2F
RGBrgb(156, 143, 47)
HSLhsl(53, 54%, 40%)
HSVhsv(53, 70%, 61%)
CMYKcmyk(0%, 8.3%, 69.9%, 38.8%)
CIE-LABlab(58.90, -6.61, 50.50)
CIE-LCHlch(58.90, 50.93, 97.45°)
OKLaboklab(64.34% -0.023 0.113)
OKLCHoklch(64.34% 0.115 101.5)
XYZxyz(24.0469, 26.9191, 6.6180)
Luminance0.2692 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C8F2F #2F3C9C
analogous
#9C592F #9C8F2F #739C2F
triadic
#9C8F2F #2F9C8F #8F2F9C
tetradic
#9C8F2F #2F9C59 #2F3C9C #9C2F73
square
#9C8F2F #2F9C59 #2F3C9C #9C2F73
split-complementary
#9C8F2F #2F739C #592F9C
monochromatic
#3E3913 #6D6421 #9C8F2F #C6B642 #D4C871

Accessibility & contrast

On white

3.29
#9C8F2F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.38
#9C8F2F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9C8F2F
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C8F2F#FFFFFF#000000##000000
##9C8F2F1.003.296.386.38
#FFFFFF3.291.0021.0021.00
#0000006.3821.001.001.00
##0000006.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#9C8B21
Deuteranopia (green-blind)
#A09035
Tritanopia (blue-blind)
#A8857C
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #9c8f2f;
/* rgb */ color: rgb(156, 143, 47);
/* oklch */ color: oklch(64.3% 0.115 101.5);
Tailwind
colors: {
  custom: {
    50: '#bcaf6d',
    500: '#9c8f2f',
    950: '#000000',
  },
}
SCSS
$custom: #9c8f2f;
$custom-light: #bcaf6d;
$custom-dark: #000000;
JSON
{
  "hex": "#9c8f2f",
  "rgb": {
    "r": 156,
    "g": 143,
    "b": 47
  },
  "hsl": {
    "h": 52.844,
    "s": 53.695,
    "l": 39.804
  },
  "oklch": {
    "l": 0.64343,
    "c": 0.11533,
    "h": 101.5
  },
  "luminance": 0.26918
}

Semantic roles & 50–950 ramp

primary
#9C8F2F
secondary
#6B75BC
accent
#5CDD4B
background
#FCFAF6
surface
#F8F4EC
border
#D1CEC7
text
#121007
muted
#817F7A

Preview Lab

Preview with #9C8F2F

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

Preview Lab → · Contrast checker → · Palette generator →

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