#9F8928#9F8928

#9F8928 is a light, moderate yellow. Relative luminance 0.254; OKLCH L 63.3% C 0.115 H 95.9°. Best body text is #000000 at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#9F8928
RGBrgb(159, 137, 40)
HSLhsl(49, 60%, 39%)
HSVhsv(49, 75%, 62%)
CMYKcmyk(0%, 13.8%, 74.8%, 37.6%)
CIE-LABlab(57.48, -2.33, 52.01)
CIE-LCHlch(57.48, 52.06, 92.57°)
OKLaboklab(63.27% -0.0118 0.1148)
OKLCHoklch(63.27% 0.115 95.9)
XYZxyz(23.6280, 25.4167, 5.6685)
Luminance0.2541 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F8928 #283E9F
analogous
#9F4E28 #9F8928 #7A9F28
triadic
#9F8928 #289F89 #89289F
tetradic
#9F8928 #289F4E #283E9F #9F287A
square
#9F8928 #289F4E #283E9F #9F287A
split-complementary
#9F8928 #287A9F #4E289F
monochromatic
#3D350F #6E5F1C #9F8928 #CDB137 #D9C468

Accessibility & contrast

On white

3.45
#9F8928 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.08
#9F8928 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F8928
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F8928#FFFFFF#000000##000000
##9F89281.003.456.086.08
#FFFFFF3.451.0021.0021.00
#0000006.0821.001.001.00
##0000006.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#988618
Deuteranopia (green-blind)
#9D8D2E
Tritanopia (blue-blind)
#AC7E76
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #9f8928;
/* rgb */ color: rgb(159, 137, 40);
/* oklch */ color: oklch(63.3% 0.115 95.9);
Tailwind
colors: {
  custom: {
    50: '#bfab69',
    500: '#9f8928',
    950: '#000000',
  },
}
SCSS
$custom: #9f8928;
$custom-light: #bfab69;
$custom-dark: #000000;
JSON
{
  "hex": "#9f8928",
  "rgb": {
    "r": 159,
    "g": 137,
    "b": 40
  },
  "hsl": {
    "h": 48.908,
    "s": 59.799,
    "l": 39.02
  },
  "oklch": {
    "l": 0.63269,
    "c": 0.11537,
    "h": 95.9
  },
  "luminance": 0.25415
}

Semantic roles & 50–950 ramp

primary
#9F8928
secondary
#6474BF
accent
#62E345
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131007
muted
#827F7A

Preview Lab

Preview with #9F8928

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

Preview Lab → · Contrast checker → · Palette generator →

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