#9D8022#9D8022

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

Color values

HEX#9D8022
RGBrgb(157, 128, 34)
HSLhsl(46, 64%, 37%)
HSVhsv(46, 78%, 62%)
CMYKcmyk(0%, 18.5%, 78.3%, 38.4%)
CIE-LABlab(54.79, 1.48, 51.66)
CIE-LCHlch(54.79, 51.69, 88.36°)
OKLaboklab(61.08% -0.0014 0.1129)
OKLCHoklch(61.08% 0.113 90.7)
XYZxyz(21.9138, 22.7233, 4.7449)
Luminance0.2272 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D8022 #223F9D
analogous
#9D4322 #9D8022 #7C9D22
triadic
#9D8022 #229D80 #80229D
tetradic
#9D8022 #229D43 #223F9D #9D227C
square
#9D8022 #229D43 #223F9D #9D227C
split-complementary
#9D8022 #227C9D #43229D
monochromatic
#382E0C #6B5717 #9D8022 #CFA92D #DCBE5D

Accessibility & contrast

On white

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

On black

5.54
#9D8022 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D8022
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D8022#FFFFFF#000000##000000
##9D80221.003.795.545.54
#FFFFFF3.791.0021.0021.00
#0000005.5421.001.001.00
##0000005.5421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9d8022;
/* rgb */ color: rgb(157, 128, 34);
/* oklch */ color: oklch(61.1% 0.113 90.7);
Tailwind
colors: {
  custom: {
    50: '#bea465',
    500: '#9d8022',
    950: '#000000',
  },
}
SCSS
$custom: #9d8022;
$custom-light: #bea465;
$custom-dark: #000000;
JSON
{
  "hex": "#9d8022",
  "rgb": {
    "r": 157,
    "g": 128,
    "b": 34
  },
  "hsl": {
    "h": 45.854,
    "s": 64.398,
    "l": 37.451
  },
  "oklch": {
    "l": 0.61083,
    "c": 0.11289,
    "h": 90.7
  },
  "luminance": 0.22722
}

Semantic roles & 50–950 ramp

primary
#9D8022
secondary
#5A72C1
accent
#68E740
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#130F06
muted
#827F7A

Preview Lab

Preview with #9D8022

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

Preview Lab → · Contrast checker → · Palette generator →

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