#9D8B23#9D8B23

#9D8B23 is a light, moderate yellow. Relative luminance 0.258; OKLCH L 63.5% C 0.120 H 98.9°. Best body text is #000000 at 6.15:1 contrast (WCAG AA passes).

Color values

HEX#9D8B23
RGBrgb(157, 139, 35)
HSLhsl(51, 64%, 38%)
HSVhsv(51, 78%, 62%)
CMYKcmyk(0%, 11.5%, 77.7%, 38.4%)
CIE-LABlab(57.80, -4.56, 54.10)
CIE-LCHlch(57.80, 54.30, 94.82°)
OKLaboklab(63.47% -0.0185 0.1183)
OKLCHoklch(63.47% 0.12 98.9)
XYZxyz(23.4418, 25.7559, 5.3264)
Luminance0.2576 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D8B23 #23359D
analogous
#9D4E23 #9D8B23 #729D23
triadic
#9D8B23 #239D8B #8B239D
tetradic
#9D8B23 #239D4E #23359D #9D2372
square
#9D8B23 #239D4E #23359D #9D2372
split-complementary
#9D8B23 #23729D #4E239D
monochromatic
#39320D #6B5F18 #9D8B23 #CFB72E #DBC95F

Accessibility & contrast

On white

3.41
#9D8B23 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.15
#9D8B23 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D8B23
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D8B23#FFFFFF#000000##000000
##9D8B231.003.416.156.15
#FFFFFF3.411.0021.0021.00
#0000006.1521.001.001.00
##0000006.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#99870D
Deuteranopia (green-blind)
#9E8E2A
Tritanopia (blue-blind)
#AA8077
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #9d8b23;
/* rgb */ color: rgb(157, 139, 35);
/* oklch */ color: oklch(63.5% 0.120 98.9);
Tailwind
colors: {
  custom: {
    50: '#beac67',
    500: '#9d8b23',
    950: '#000000',
  },
}
SCSS
$custom: #9d8b23;
$custom-light: #beac67;
$custom-dark: #000000;
JSON
{
  "hex": "#9d8b23",
  "rgb": {
    "r": 157,
    "g": 139,
    "b": 35
  },
  "hsl": {
    "h": 51.148,
    "s": 63.542,
    "l": 37.647
  },
  "oklch": {
    "l": 0.63472,
    "c": 0.11974,
    "h": 98.9
  },
  "luminance": 0.25755
}

Semantic roles & 50–950 ramp

primary
#9D8B23
secondary
#5C6AC0
accent
#5AE741
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131006
muted
#827F7A

Preview Lab

Preview with #9D8B23

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

Preview Lab → · Contrast checker → · Palette generator →

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