#9C8E2F#9C8E2F

#9C8E2F is a light, moderate yellow. Relative luminance 0.266; OKLCH L 64.1% C 0.114 H 100.8°. Best body text is #000000 at 6.32:1 contrast (WCAG AA passes).

Color values

HEX#9C8E2F
RGBrgb(156, 142, 47)
HSLhsl(52, 54%, 40%)
HSVhsv(52, 70%, 61%)
CMYKcmyk(0%, 9%, 69.9%, 38.8%)
CIE-LABlab(58.62, -6.06, 50.22)
CIE-LCHlch(58.62, 50.58, 96.89°)
OKLaboklab(64.12% -0.0214 0.1124)
OKLCHoklch(64.12% 0.114 100.8)
XYZxyz(23.8974, 26.6202, 6.5682)
Luminance0.2662 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C8E2F #2F3D9C
analogous
#9C582F #9C8E2F #739C2F
triadic
#9C8E2F #2F9C8E #8E2F9C
tetradic
#9C8E2F #2F9C58 #2F3D9C #9C2F73
square
#9C8E2F #2F9C58 #2F3D9C #9C2F73
split-complementary
#9C8E2F #2F739C #582F9C
monochromatic
#3E3813 #6D6321 #9C8E2F #C6B542 #D4C871

Accessibility & contrast

On white

3.32
#9C8E2F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.32
#9C8E2F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9C8E2F
6.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C8E2F#FFFFFF#000000##000000
##9C8E2F1.003.326.326.32
#FFFFFF3.321.0021.0021.00
#0000006.3221.001.001.00
##0000006.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#9B8A21
Deuteranopia (green-blind)
#9F8F35
Tritanopia (blue-blind)
#A8847B
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #9c8e2f;
/* rgb */ color: rgb(156, 142, 47);
/* oklch */ color: oklch(64.1% 0.114 100.8);
Tailwind
colors: {
  custom: {
    50: '#bcae6d',
    500: '#9c8e2f',
    950: '#000000',
  },
}
SCSS
$custom: #9c8e2f;
$custom-light: #bcae6d;
$custom-dark: #000000;
JSON
{
  "hex": "#9c8e2f",
  "rgb": {
    "r": 156,
    "g": 142,
    "b": 47
  },
  "hsl": {
    "h": 52.294,
    "s": 53.695,
    "l": 39.804
  },
  "oklch": {
    "l": 0.64122,
    "c": 0.11444,
    "h": 100.8
  },
  "luminance": 0.26619
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #9C8E2F

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

Preview Lab → · Contrast checker → · Palette generator →

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