#9C8E21#9C8E21

#9C8E21 is a light, vivid yellow. Relative luminance 0.265; OKLCH L 64.0% C 0.123 H 101.6°. Best body text is #000000 at 6.30:1 contrast (WCAG AA passes).

Color values

HEX#9C8E21
RGBrgb(156, 142, 33)
HSLhsl(53, 65%, 37%)
HSVhsv(53, 79%, 61%)
CMYKcmyk(0%, 9%, 78.8%, 38.8%)
CIE-LABlab(58.53, -6.73, 55.42)
CIE-LCHlch(58.53, 55.83, 96.93°)
OKLaboklab(64.02% -0.0248 0.1208)
OKLCHoklch(64.02% 0.123 101.6)
XYZxyz(23.6589, 26.5248, 5.3121)
Luminance0.2652 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C8E21 #212F9C
analogous
#9C5121 #9C8E21 #6C9C21
triadic
#9C8E21 #219C8E #8E219C
tetradic
#9C8E21 #219C51 #212F9C #9C216C
square
#9C8E21 #219C51 #212F9C #9C216C
split-complementary
#9C8E21 #216C9C #51219C
monochromatic
#37320C #696016 #9C8E21 #CFBC2C #DCCE5B

Accessibility & contrast

On white

3.33
#9C8E21 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.30
#9C8E21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9C8E21
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C8E21#FFFFFF#000000##000000
##9C8E211.003.336.306.30
#FFFFFF3.331.0021.0021.00
#0000006.3021.001.001.00
##0000006.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#9C8A06
Deuteranopia (green-blind)
#A08F29
Tritanopia (blue-blind)
#A8837A
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #9c8e21;
/* rgb */ color: rgb(156, 142, 33);
/* oklch */ color: oklch(64.0% 0.123 101.6);
Tailwind
colors: {
  custom: {
    50: '#bdae66',
    500: '#9c8e21',
    950: '#000000',
  },
}
SCSS
$custom: #9c8e21;
$custom-light: #bdae66;
$custom-dark: #000000;
JSON
{
  "hex": "#9c8e21",
  "rgb": {
    "r": 156,
    "g": 142,
    "b": 33
  },
  "hsl": {
    "h": 53.171,
    "s": 65.079,
    "l": 37.059
  },
  "oklch": {
    "l": 0.64023,
    "c": 0.12327,
    "h": 101.6
  },
  "luminance": 0.26524
}

Semantic roles & 50–950 ramp

primary
#9C8E21
secondary
#5864C1
accent
#53E840
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131006
muted
#827F7A

Preview Lab

Preview with #9C8E21

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

Preview Lab → · Contrast checker → · Palette generator →

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