#9D8023#9D8023

#9D8023 is a mid, moderate yellow. Relative luminance 0.227; OKLCH L 61.1% C 0.112 H 90.6°. Best body text is #000000 at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#9D8023
RGBrgb(157, 128, 35)
HSLhsl(46, 64%, 38%)
HSVhsv(46, 78%, 62%)
CMYKcmyk(0%, 18.5%, 77.7%, 38.4%)
CIE-LABlab(54.79, 1.52, 51.30)
CIE-LCHlch(54.79, 51.32, 88.30°)
OKLaboklab(61.09% -0.0012 0.1123)
OKLCHoklch(61.09% 0.112 90.6)
XYZxyz(21.9285, 22.7292, 4.8220)
Luminance0.2273 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D8023 #23409D
analogous
#9D4323 #9D8023 #7D9D23
triadic
#9D8023 #239D80 #80239D
tetradic
#9D8023 #239D43 #23409D #9D237D
square
#9D8023 #239D43 #23409D #9D237D
split-complementary
#9D8023 #237D9D #43239D
monochromatic
#392E0D #6B5718 #9D8023 #CFA92E #DBBE5F

Accessibility & contrast

On white

3.79
#9D8023 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.55
#9D8023 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D8023
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D8023#FFFFFF#000000##000000
##9D80231.003.795.555.55
#FFFFFF3.791.0021.0021.00
#0000005.5521.001.001.00
##0000005.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7E12
Deuteranopia (green-blind)
#968728
Tritanopia (blue-blind)
#AA756E
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #9d8023;
/* rgb */ color: rgb(157, 128, 35);
/* oklch */ color: oklch(61.1% 0.112 90.6);
Tailwind
colors: {
  custom: {
    50: '#bea465',
    500: '#9d8023',
    950: '#000000',
  },
}
SCSS
$custom: #9d8023;
$custom-light: #bea465;
$custom-dark: #000000;
JSON
{
  "hex": "#9d8023",
  "rgb": {
    "r": 157,
    "g": 128,
    "b": 35
  },
  "hsl": {
    "h": 45.738,
    "s": 63.542,
    "l": 37.647
  },
  "oklch": {
    "l": 0.6109,
    "c": 0.11231,
    "h": 90.6
  },
  "luminance": 0.22728
}

Semantic roles & 50–950 ramp

primary
#9D8023
secondary
#5C74C0
accent
#69E741
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#130F06
muted
#827F7A

Preview Lab

Preview with #9D8023

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

Preview Lab → · Contrast checker → · Palette generator →

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