#9C9823#9C9823

#9C9823 is a light, vivid yellow. Relative luminance 0.296; OKLCH L 66.3% C 0.131 H 107.5°. Best body text is #000000 at 6.93:1 contrast (WCAG AA passes).

Color values

HEX#9C9823
RGBrgb(156, 152, 35)
HSLhsl(58, 63%, 37%)
HSVhsv(58, 78%, 61%)
CMYKcmyk(0%, 2.6%, 77.6%, 38.8%)
CIE-LABlab(61.35, -12.00, 57.33)
CIE-LCHlch(61.35, 58.57, 101.83°)
OKLaboklab(66.27% -0.0394 0.1252)
OKLCHoklch(66.27% 0.131 107.5)
XYZxyz(25.2429, 29.6466, 5.9825)
Luminance0.2965 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C9823 #23279C
analogous
#9C5C23 #9C9823 #639C23
triadic
#9C9823 #239C98 #98239C
tetradic
#9C9823 #239C5C #23279C #9C2363
square
#9C9823 #239C5C #23279C #9C2363
split-complementary
#9C9823 #23639C #5C239C
monochromatic
#38370D #6A6718 #9C9823 #CEC92E #DBD75E

Accessibility & contrast

On white

3.03
#9C9823 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.93
#9C9823 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9C9823
6.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C9823#FFFFFF#000000##000000
##9C98231.003.036.936.93
#FFFFFF3.031.0021.0021.00
#0000006.9321.001.001.00
##0000006.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#A59204
Deuteranopia (green-blind)
#A7962D
Tritanopia (blue-blind)
#A88E82
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #9c9823;
/* rgb */ color: rgb(156, 152, 35);
/* oklch */ color: oklch(66.3% 0.131 107.5);
Tailwind
colors: {
  custom: {
    50: '#bdb668',
    500: '#9c9823',
    950: '#000000',
  },
}
SCSS
$custom: #9c9823;
$custom-light: #bdb668;
$custom-dark: #000000;
JSON
{
  "hex": "#9c9823",
  "rgb": {
    "r": 156,
    "g": 152,
    "b": 35
  },
  "hsl": {
    "h": 58.017,
    "s": 63.351,
    "l": 37.451
  },
  "oklch": {
    "l": 0.66268,
    "c": 0.13126,
    "h": 107.5
  },
  "luminance": 0.29646
}

Semantic roles & 50–950 ramp

primary
#9C9823
secondary
#5B5EC0
accent
#47E641
background
#FCFBF6
surface
#F8F6EB
border
#D1D0C6
text
#121107
muted
#81807A

Preview Lab

Preview with #9C9823

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

Preview Lab → · Contrast checker → · Palette generator →

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