#9C8D23#9C8D23

#9C8D23 is a light, vivid yellow. Relative luminance 0.262; OKLCH L 63.8% C 0.121 H 100.8°. Best body text is #000000 at 6.25:1 contrast (WCAG AA passes).

Color values

HEX#9C8D23
RGBrgb(156, 141, 35)
HSLhsl(53, 63%, 37%)
HSVhsv(53, 78%, 61%)
CMYKcmyk(0%, 9.6%, 77.6%, 38.8%)
CIE-LABlab(58.26, -6.11, 54.49)
CIE-LCHlch(58.26, 54.84, 96.40°)
OKLaboklab(63.81% -0.0228 0.1192)
OKLCHoklch(63.81% 0.121 100.8)
XYZxyz(23.5397, 26.2401, 5.4147)
Luminance0.2624 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C8D23 #23329C
analogous
#9C5123 #9C8D23 #6F9C23
triadic
#9C8D23 #239C8D #8D239C
tetradic
#9C8D23 #239C51 #23329C #9C236F
square
#9C8D23 #239C51 #23329C #9C236F
split-complementary
#9C8D23 #236F9C #51239C
monochromatic
#38330D #6A6018 #9C8D23 #CEBA2E #DBCC5E

Accessibility & contrast

On white

3.36
#9C8D23 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.25
#9C8D23 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9C8D23
6.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C8D23#FFFFFF#000000##000000
##9C8D231.003.366.256.25
#FFFFFF3.361.0021.0021.00
#0000006.2521.001.001.00
##0000006.2521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9c8d23;
/* rgb */ color: rgb(156, 141, 35);
/* oklch */ color: oklch(63.8% 0.121 100.8);
Tailwind
colors: {
  custom: {
    50: '#bdae67',
    500: '#9c8d23',
    950: '#000000',
  },
}
SCSS
$custom: #9c8d23;
$custom-light: #bdae67;
$custom-dark: #000000;
JSON
{
  "hex": "#9c8d23",
  "rgb": {
    "r": 156,
    "g": 141,
    "b": 35
  },
  "hsl": {
    "h": 52.562,
    "s": 63.351,
    "l": 37.451
  },
  "oklch": {
    "l": 0.63814,
    "c": 0.12134,
    "h": 100.8
  },
  "luminance": 0.26239
}

Semantic roles & 50–950 ramp

primary
#9C8D23
secondary
#5B68C0
accent
#56E641
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131006
muted
#827F7A

Preview Lab

Preview with #9C8D23

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

Preview Lab → · Contrast checker → · Palette generator →

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