#9F8328#9F8328

#9F8328 is a mid, moderate yellow. Relative luminance 0.238; OKLCH L 62.0% C 0.111 H 91.2°. Best body text is #000000 at 5.75:1 contrast (WCAG AA passes).

Color values

HEX#9F8328
RGBrgb(159, 131, 40)
HSLhsl(46, 60%, 39%)
HSVhsv(46, 75%, 62%)
CMYKcmyk(0%, 17.6%, 74.8%, 37.6%)
CIE-LABlab(55.84, 0.99, 50.43)
CIE-LCHlch(55.84, 50.44, 88.87°)
OKLaboklab(61.98% -0.0023 0.1114)
OKLCHoklch(61.98% 0.111 91.2)
XYZxyz(22.7987, 23.7581, 5.3920)
Luminance0.2376 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F8328 #28449F
analogous
#9F4828 #9F8328 #809F28
triadic
#9F8328 #289F83 #83289F
tetradic
#9F8328 #289F48 #28449F #9F2880
square
#9F8328 #289F48 #28449F #9F2880
split-complementary
#9F8328 #28809F #48289F
monochromatic
#3D320F #6E5B1C #9F8328 #CDAA37 #D9BF68

Accessibility & contrast

On white

3.65
#9F8328 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.75
#9F8328 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F8328
5.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F8328#FFFFFF#000000##000000
##9F83281.003.655.755.75
#FFFFFF3.651.0021.0021.00
#0000005.7521.001.001.00
##0000005.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#92811A
Deuteranopia (green-blind)
#99892D
Tritanopia (blue-blind)
#AC7871
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #9f8328;
/* rgb */ color: rgb(159, 131, 40);
/* oklch */ color: oklch(62.0% 0.111 91.2);
Tailwind
colors: {
  custom: {
    50: '#bfa668',
    500: '#9f8328',
    950: '#000000',
  },
}
SCSS
$custom: #9f8328;
$custom-light: #bfa668;
$custom-dark: #000000;
JSON
{
  "hex": "#9f8328",
  "rgb": {
    "r": 159,
    "g": 131,
    "b": 40
  },
  "hsl": {
    "h": 45.882,
    "s": 59.799,
    "l": 39.02
  },
  "oklch": {
    "l": 0.61978,
    "c": 0.11142,
    "h": 91.2
  },
  "luminance": 0.23757
}

Semantic roles & 50–950 ramp

primary
#9F8328
secondary
#6479BF
accent
#6AE345
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#130F06
muted
#827F7A

Preview Lab

Preview with #9F8328

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

Preview Lab → · Contrast checker → · Palette generator →

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