#9D8923#9D8923

#9D8923 is a light, moderate yellow. Relative luminance 0.252; OKLCH L 63.0% C 0.118 H 97.5°. Best body text is #000000 at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#9D8923
RGBrgb(157, 137, 35)
HSLhsl(50, 64%, 38%)
HSVhsv(50, 78%, 62%)
CMYKcmyk(0%, 12.7%, 77.7%, 38.4%)
CIE-LABlab(57.25, -3.47, 53.59)
CIE-LCHlch(57.25, 53.70, 93.70°)
OKLaboklab(63.03% -0.0154 0.1172)
OKLCHoklch(63.03% 0.118 97.5)
XYZxyz(23.1549, 25.1820, 5.2308)
Luminance0.2518 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D8923 #23379D
analogous
#9D4C23 #9D8923 #749D23
triadic
#9D8923 #239D89 #89239D
tetradic
#9D8923 #239D4C #23379D #9D2374
square
#9D8923 #239D4C #23379D #9D2374
split-complementary
#9D8923 #23749D #4C239D
monochromatic
#39320D #6B5D18 #9D8923 #CFB52E #DBC75F

Accessibility & contrast

On white

3.48
#9D8923 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.04
#9D8923 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D8923
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D8923#FFFFFF#000000##000000
##9D89231.003.486.046.04
#FFFFFF3.481.0021.0021.00
#0000006.0421.001.001.00
##0000006.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#97860E
Deuteranopia (green-blind)
#9D8C2A
Tritanopia (blue-blind)
#AA7E76
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #9d8923;
/* rgb */ color: rgb(157, 137, 35);
/* oklch */ color: oklch(63.0% 0.118 97.5);
Tailwind
colors: {
  custom: {
    50: '#beab66',
    500: '#9d8923',
    950: '#000000',
  },
}
SCSS
$custom: #9d8923;
$custom-light: #beab66;
$custom-dark: #000000;
JSON
{
  "hex": "#9d8923",
  "rgb": {
    "r": 157,
    "g": 137,
    "b": 35
  },
  "hsl": {
    "h": 50.164,
    "s": 63.542,
    "l": 37.647
  },
  "oklch": {
    "l": 0.63034,
    "c": 0.11821,
    "h": 97.5
  },
  "luminance": 0.25181
}

Semantic roles & 50–950 ramp

primary
#9D8923
secondary
#5C6CC0
accent
#5CE741
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131006
muted
#827F7A

Preview Lab

Preview with #9D8923

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

Preview Lab → · Contrast checker → · Palette generator →

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