#9F8528#9F8528

#9F8528 is a light, moderate yellow. Relative luminance 0.243; OKLCH L 62.4% C 0.113 H 92.8°. Best body text is #000000 at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#9F8528
RGBrgb(159, 133, 40)
HSLhsl(47, 60%, 39%)
HSVhsv(47, 75%, 62%)
CMYKcmyk(0%, 16.4%, 74.8%, 37.6%)
CIE-LABlab(56.39, -0.12, 50.95)
CIE-LCHlch(56.39, 50.95, 90.14°)
OKLaboklab(62.41% -0.0055 0.1125)
OKLCHoklch(62.41% 0.113 92.8)
XYZxyz(23.0699, 24.3005, 5.4824)
Luminance0.2430 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F8528 #28429F
analogous
#9F4A28 #9F8528 #7E9F28
triadic
#9F8528 #289F85 #85289F
tetradic
#9F8528 #289F4A #28429F #9F287E
square
#9F8528 #289F4A #28429F #9F287E
split-complementary
#9F8528 #287E9F #4A289F
monochromatic
#3D330F #6E5C1C #9F8528 #CDAC37 #D9C068

Accessibility & contrast

On white

3.58
#9F8528 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.86
#9F8528 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F8528
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F8528#FFFFFF#000000##000000
##9F85281.003.585.865.86
#FFFFFF3.581.0021.0021.00
#0000005.8621.001.001.00
##0000005.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#948319
Deuteranopia (green-blind)
#9A8A2D
Tritanopia (blue-blind)
#AC7A73
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #9f8528;
/* rgb */ color: rgb(159, 133, 40);
/* oklch */ color: oklch(62.4% 0.113 92.8);
Tailwind
colors: {
  custom: {
    50: '#bfa869',
    500: '#9f8528',
    950: '#000000',
  },
}
SCSS
$custom: #9f8528;
$custom-light: #bfa869;
$custom-dark: #000000;
JSON
{
  "hex": "#9f8528",
  "rgb": {
    "r": 159,
    "g": 133,
    "b": 40
  },
  "hsl": {
    "h": 46.891,
    "s": 59.799,
    "l": 39.02
  },
  "oklch": {
    "l": 0.62406,
    "c": 0.11265,
    "h": 92.8
  },
  "luminance": 0.24299
}

Semantic roles & 50–950 ramp

primary
#9F8528
secondary
#6478BF
accent
#67E345
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#130F07
muted
#827F7A

Preview Lab

Preview with #9F8528

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

Preview Lab → · Contrast checker → · Palette generator →

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