#9D801F#9D801F

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

Color values

HEX#9D801F
RGBrgb(157, 128, 31)
HSLhsl(46, 67%, 37%)
HSVhsv(46, 80%, 62%)
CMYKcmyk(0%, 18.5%, 80.3%, 38.4%)
CIE-LABlab(54.77, 1.36, 52.73)
CIE-LCHlch(54.77, 52.75, 88.52°)
OKLaboklab(61.06% -0.0021 0.1145)
OKLCHoklch(61.06% 0.115 91.1)
XYZxyz(21.8724, 22.7068, 4.5269)
Luminance0.2271 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D801F #1F3C9D
analogous
#9D411F #9D801F #7B9D1F
triadic
#9D801F #1F9D80 #801F9D
tetradic
#9D801F #1F9D41 #1F3C9D #9D1F7B
square
#9D801F #1F9D41 #1F3C9D #9D1F7B
split-complementary
#9D801F #1F7B9D #411F9D
monochromatic
#372D0B #6A5615 #9D801F #D0AA29 #DEBF58

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9D801F#FFFFFF#000000##000000
##9D801F1.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)
#8F7E09
Deuteranopia (green-blind)
#968625
Tritanopia (blue-blind)
#AA756E
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #9d801f;
/* rgb */ color: rgb(157, 128, 31);
/* oklch */ color: oklch(61.1% 0.115 91.1);
Tailwind
colors: {
  custom: {
    50: '#bea463',
    500: '#9d801f',
    950: '#000000',
  },
}
SCSS
$custom: #9d801f;
$custom-light: #bea463;
$custom-dark: #000000;
JSON
{
  "hex": "#9d801f",
  "rgb": {
    "r": 157,
    "g": 128,
    "b": 31
  },
  "hsl": {
    "h": 46.19,
    "s": 67.021,
    "l": 36.863
  },
  "oklch": {
    "l": 0.61064,
    "c": 0.11453,
    "h": 91.1
  },
  "luminance": 0.22705
}

Semantic roles & 50–950 ramp

primary
#9D801F
secondary
#566FC2
accent
#65EA3E
background
#FCFAF6
surface
#F8F3EB
border
#D1CDC6
text
#130F06
muted
#827F7A

Preview Lab

Preview with #9D801F

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

Preview Lab → · Contrast checker → · Palette generator →

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