#9F8732#9F8732

#9F8732 is a light, moderate yellow. Relative luminance 0.249; OKLCH L 62.9% C 0.107 H 93.2°. Best body text is #000000 at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#9F8732
RGBrgb(159, 135, 50)
HSLhsl(47, 52%, 41%)
HSVhsv(47, 69%, 62%)
CMYKcmyk(0%, 15.1%, 68.6%, 37.6%)
CIE-LABlab(57.01, -0.70, 47.35)
CIE-LCHlch(57.01, 47.36, 90.84°)
OKLaboklab(62.92% -0.0059 0.1068)
OKLCHoklch(62.92% 0.107 93.2)
XYZxyz(23.5389, 24.9305, 6.5892)
Luminance0.2493 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F8732 #324A9F
analogous
#9F5032 #9F8732 #809F32
triadic
#9F8732 #329F87 #87329F
tetradic
#9F8732 #329F50 #324A9F #9F3280
square
#9F8732 #329F50 #324A9F #9F3280
split-complementary
#9F8732 #32809F #50329F
monochromatic
#423815 #705F23 #9F8732 #C6AA49 #D4C077

Accessibility & contrast

On white

3.51
#9F8732 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.99
#9F8732 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F8732
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F8732#FFFFFF#000000##000000
##9F87321.003.515.995.99
#FFFFFF3.511.0021.0021.00
#0000005.9921.001.001.00
##0000005.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#958527
Deuteranopia (green-blind)
#9B8C36
Tritanopia (blue-blind)
#AC7C75
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #9f8732;
/* rgb */ color: rgb(159, 135, 50);
/* oklch */ color: oklch(62.9% 0.107 93.2);
Tailwind
colors: {
  custom: {
    50: '#bfa96e',
    500: '#9f8732',
    950: '#000000',
  },
}
SCSS
$custom: #9f8732;
$custom-light: #bfa96e;
$custom-dark: #000000;
JSON
{
  "hex": "#9f8732",
  "rgb": {
    "r": 159,
    "g": 135,
    "b": 50
  },
  "hsl": {
    "h": 46.789,
    "s": 52.153,
    "l": 40.98
  },
  "oklch": {
    "l": 0.6292,
    "c": 0.10695,
    "h": 93.2
  },
  "luminance": 0.24929
}

Semantic roles & 50–950 ramp

primary
#9F8732
secondary
#7081BD
accent
#6CDC4C
background
#FCFAF6
surface
#F8F4EC
border
#D1CEC7
text
#130F07
muted
#827F7A

Preview Lab

Preview with #9F8732

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

Preview Lab → · Contrast checker → · Palette generator →

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