#9F801F#9F801F

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

Color values

HEX#9F801F
RGBrgb(159, 128, 31)
HSLhsl(45, 67%, 37%)
HSVhsv(45, 81%, 62%)
CMYKcmyk(0%, 19.5%, 80.5%, 37.6%)
CIE-LABlab(54.98, 2.28, 53.00)
CIE-LCHlch(54.98, 53.05, 87.53°)
OKLaboklab(61.28% 0.0004 0.115)
OKLCHoklch(61.28% 0.115 89.8)
XYZxyz(22.2659, 22.9097, 4.5453)
Luminance0.2291 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F801F #1F3E9F
analogous
#9F401F #9F801F #7E9F1F
triadic
#9F801F #1F9F80 #801F9F
tetradic
#9F801F #1F9F40 #1F3E9F #9F1F7E
square
#9F801F #1F9F40 #1F3E9F #9F1F7E
split-complementary
#9F801F #1F7E9F #401F9F
monochromatic
#392E0B #6C5715 #9F801F #D2A929 #DFBF5A

Accessibility & contrast

On white

3.76
#9F801F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##9F801F#FFFFFF#000000##000000
##9F801F1.003.765.585.58
#FFFFFF3.761.0021.0021.00
#0000005.5821.001.001.00
##0000005.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#907F09
Deuteranopia (green-blind)
#978725
Tritanopia (blue-blind)
#AD746E
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #9f801f;
/* rgb */ color: rgb(159, 128, 31);
/* oklch */ color: oklch(61.3% 0.115 89.8);
Tailwind
colors: {
  custom: {
    50: '#c0a463',
    500: '#9f801f',
    950: '#000000',
  },
}
SCSS
$custom: #9f801f;
$custom-light: #c0a463;
$custom-dark: #000000;
JSON
{
  "hex": "#9f801f",
  "rgb": {
    "r": 159,
    "g": 128,
    "b": 31
  },
  "hsl": {
    "h": 45.469,
    "s": 67.368,
    "l": 37.255
  },
  "oklch": {
    "l": 0.61278,
    "c": 0.11498,
    "h": 89.8
  },
  "luminance": 0.22908
}

Semantic roles & 50–950 ramp

primary
#9F801F
secondary
#5771C3
accent
#67EA3E
background
#FCFAF6
surface
#F8F3EB
border
#D1CDC6
text
#130F06
muted
#827F7A

Preview Lab

Preview with #9F801F

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

Preview Lab → · Contrast checker → · Palette generator →

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