#9F801B#9F801B

#9F801B is a mid, moderate yellow. Relative luminance 0.229; OKLCH L 61.3% C 0.117 H 90.2°. Best body text is #000000 at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#9F801B
RGBrgb(159, 128, 27)
HSLhsl(46, 71%, 36%)
HSVhsv(46, 83%, 62%)
CMYKcmyk(0%, 19.5%, 83%, 37.6%)
CIE-LABlab(54.96, 2.14, 54.32)
CIE-LCHlch(54.96, 54.36, 87.74°)
OKLaboklab(61.26% -0.0004 0.1169)
OKLCHoklch(61.26% 0.117 90.2)
XYZxyz(22.2164, 22.8899, 4.2847)
Luminance0.2289 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F801B #1B3A9F
analogous
#9F3E1B #9F801B #7C9F1B
triadic
#9F801B #1B9F80 #801B9F
tetradic
#9F801B #1B9F3E #1B3A9F #9F1B7C
square
#9F801B #1B9F3E #1B3A9F #9F1B7C
split-complementary
#9F801B #1B7C9F #3E1B9F
monochromatic
#362C09 #6B5612 #9F801B #D3AA24 #E2C053

Accessibility & contrast

On white

3.77
#9F801B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.58
#9F801B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F801B
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F801B#FFFFFF#000000##000000
##9F801B1.003.775.585.58
#FFFFFF3.771.0021.0021.00
#0000005.5821.001.001.00
##0000005.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#907F00
Deuteranopia (green-blind)
#978722
Tritanopia (blue-blind)
#AD746D
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #9f801b;
/* rgb */ color: rgb(159, 128, 27);
/* oklch */ color: oklch(61.3% 0.117 90.2);
Tailwind
colors: {
  custom: {
    50: '#c0a462',
    500: '#9f801b',
    950: '#000000',
  },
}
SCSS
$custom: #9f801b;
$custom-light: #c0a462;
$custom-dark: #000000;
JSON
{
  "hex": "#9f801b",
  "rgb": {
    "r": 159,
    "g": 128,
    "b": 27
  },
  "hsl": {
    "h": 45.909,
    "s": 70.968,
    "l": 36.471
  },
  "oklch": {
    "l": 0.61255,
    "c": 0.11694,
    "h": 90.2
  },
  "luminance": 0.22888
}

Semantic roles & 50–950 ramp

primary
#9F801B
secondary
#516CC5
accent
#64EE3A
background
#FCFAF6
surface
#F8F3EB
border
#D1CDC6
text
#130F05
muted
#827F7A

Preview Lab

Preview with #9F801B

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

Preview Lab → · Contrast checker → · Palette generator →

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