#9D8E23#9D8E23

#9D8E23 is a light, vivid yellow. Relative luminance 0.266; OKLCH L 64.1% C 0.122 H 100.9°. Best body text is #000000 at 6.33:1 contrast (WCAG AA passes).

Color values

HEX#9D8E23
RGBrgb(157, 142, 35)
HSLhsl(53, 64%, 38%)
HSVhsv(53, 78%, 62%)
CMYKcmyk(0%, 9.6%, 77.7%, 38.4%)
CIE-LABlab(58.64, -6.20, 54.87)
CIE-LCHlch(58.64, 55.22, 96.44°)
OKLaboklab(64.13% -0.0231 0.1199)
OKLCHoklch(64.13% 0.122 100.9)
XYZxyz(23.8822, 26.6366, 5.4732)
Luminance0.2663 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D8E23 #23329D
analogous
#9D5123 #9D8E23 #6F9D23
triadic
#9D8E23 #239D8E #8E239D
tetradic
#9D8E23 #239D51 #23329D #9D236F
square
#9D8E23 #239D51 #23329D #9D236F
split-complementary
#9D8E23 #236F9D #51239D
monochromatic
#39330D #6B6118 #9D8E23 #CFBB2E #DBCC5F

Accessibility & contrast

On white

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

On black

6.33
#9D8E23 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D8E23
6.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D8E23#FFFFFF#000000##000000
##9D8E231.003.326.336.33
#FFFFFF3.321.0021.0021.00
#0000006.3321.001.001.00
##0000006.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#9C8A0B
Deuteranopia (green-blind)
#A0902B
Tritanopia (blue-blind)
#AA837A
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #9d8e23;
/* rgb */ color: rgb(157, 142, 35);
/* oklch */ color: oklch(64.1% 0.122 100.9);
Tailwind
colors: {
  custom: {
    50: '#beae67',
    500: '#9d8e23',
    950: '#000000',
  },
}
SCSS
$custom: #9d8e23;
$custom-light: #beae67;
$custom-dark: #000000;
JSON
{
  "hex": "#9d8e23",
  "rgb": {
    "r": 157,
    "g": 142,
    "b": 35
  },
  "hsl": {
    "h": 52.623,
    "s": 63.542,
    "l": 37.647
  },
  "oklch": {
    "l": 0.64131,
    "c": 0.12215,
    "h": 100.9
  },
  "luminance": 0.26635
}

Semantic roles & 50–950 ramp

primary
#9D8E23
secondary
#5C68C0
accent
#56E741
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131006
muted
#827F7A

Preview Lab

Preview with #9D8E23

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

Preview Lab → · Contrast checker → · Palette generator →

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