#9F8720#9F8720

#9F8720 is a light, moderate yellow. Relative luminance 0.248; OKLCH L 62.8% C 0.119 H 95.1°. Best body text is #000000 at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#9F8720
RGBrgb(159, 135, 32)
HSLhsl(49, 66%, 37%)
HSVhsv(49, 80%, 62%)
CMYKcmyk(0%, 15.1%, 79.9%, 37.6%)
CIE-LABlab(56.88, -1.57, 54.38)
CIE-LCHlch(56.88, 54.40, 91.66°)
OKLaboklab(62.78% -0.0104 0.1182)
OKLCHoklch(62.78% 0.119 95.1)
XYZxyz(23.2240, 24.8045, 4.9307)
Luminance0.2480 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F8720 #20389F
analogous
#9F4720 #9F8720 #789F20
triadic
#9F8720 #209F87 #87209F
tetradic
#9F8720 #209F47 #20389F #9F2078
square
#9F8720 #209F47 #20389F #9F2078
split-complementary
#9F8720 #20789F #47209F
monochromatic
#39300B #6C5C16 #9F8720 #D2B22A #DEC55B

Accessibility & contrast

On white

3.52
#9F8720 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.96
#9F8720 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F8720
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F8720#FFFFFF#000000##000000
##9F87201.003.525.965.96
#FFFFFF3.521.0021.0021.00
#0000005.9621.001.001.00
##0000005.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#968407
Deuteranopia (green-blind)
#9C8C27
Tritanopia (blue-blind)
#AC7C74
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #9f8720;
/* rgb */ color: rgb(159, 135, 32);
/* oklch */ color: oklch(62.8% 0.119 95.1);
Tailwind
colors: {
  custom: {
    50: '#bfa965',
    500: '#9f8720',
    950: '#000000',
  },
}
SCSS
$custom: #9f8720;
$custom-light: #bfa965;
$custom-dark: #000000;
JSON
{
  "hex": "#9f8720",
  "rgb": {
    "r": 159,
    "g": 135,
    "b": 32
  },
  "hsl": {
    "h": 48.661,
    "s": 66.492,
    "l": 37.451
  },
  "oklch": {
    "l": 0.62784,
    "c": 0.11862,
    "h": 95.1
  },
  "luminance": 0.24803
}

Semantic roles & 50–950 ramp

primary
#9F8720
secondary
#596DC2
accent
#5FE93E
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#130F06
muted
#827F7A

Preview Lab

Preview with #9F8720

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

Preview Lab → · Contrast checker → · Palette generator →

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