#9F8520#9F8520

#9F8520 is a light, moderate yellow. Relative luminance 0.242; OKLCH L 62.4% C 0.117 H 93.6°. Best body text is #000000 at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#9F8520
RGBrgb(159, 133, 32)
HSLhsl(48, 66%, 37%)
HSVhsv(48, 80%, 62%)
CMYKcmyk(0%, 16.4%, 79.9%, 37.6%)
CIE-LABlab(56.34, -0.46, 53.88)
CIE-LCHlch(56.34, 53.88, 90.49°)
OKLaboklab(62.35% -0.0073 0.1171)
OKLCHoklch(62.35% 0.117 93.6)
XYZxyz(22.9476, 24.2516, 4.8386)
Luminance0.2425 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F8520 #203A9F
analogous
#9F4620 #9F8520 #799F20
triadic
#9F8520 #209F85 #85209F
tetradic
#9F8520 #209F46 #203A9F #9F2079
square
#9F8520 #209F46 #203A9F #9F2079
split-complementary
#9F8520 #20799F #46209F
monochromatic
#39300B #6C5A16 #9F8520 #D2B02A #DEC35B

Accessibility & contrast

On white

3.59
#9F8520 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.85
#9F8520 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F8520
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F8520#FFFFFF#000000##000000
##9F85201.003.595.855.85
#FFFFFF3.591.0021.0021.00
#0000005.8521.001.001.00
##0000005.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#948308
Deuteranopia (green-blind)
#9B8A27
Tritanopia (blue-blind)
#AC7A72
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #9f8520;
/* rgb */ color: rgb(159, 133, 32);
/* oklch */ color: oklch(62.4% 0.117 93.6);
Tailwind
colors: {
  custom: {
    50: '#bfa865',
    500: '#9f8520',
    950: '#000000',
  },
}
SCSS
$custom: #9f8520;
$custom-light: #bfa865;
$custom-dark: #000000;
JSON
{
  "hex": "#9f8520",
  "rgb": {
    "r": 159,
    "g": 133,
    "b": 32
  },
  "hsl": {
    "h": 47.717,
    "s": 66.492,
    "l": 37.451
  },
  "oklch": {
    "l": 0.62352,
    "c": 0.11732,
    "h": 93.6
  },
  "luminance": 0.2425
}

Semantic roles & 50–950 ramp

primary
#9F8520
secondary
#596EC2
accent
#61E93E
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#130F06
muted
#827F7A

Preview Lab

Preview with #9F8520

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

Preview Lab → · Contrast checker → · Palette generator →

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