#9F8728#9F8728

#9F8728 is a light, moderate yellow. Relative luminance 0.249; OKLCH L 62.8% C 0.114 H 94.3°. Best body text is #000000 at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#9F8728
RGBrgb(159, 135, 40)
HSLhsl(48, 60%, 39%)
HSVhsv(48, 75%, 62%)
CMYKcmyk(0%, 15.1%, 74.8%, 37.6%)
CIE-LABlab(56.93, -1.23, 51.48)
CIE-LCHlch(56.93, 51.50, 91.37°)
OKLaboklab(62.84% -0.0086 0.1137)
OKLCHoklch(62.84% 0.114 94.3)
XYZxyz(23.3463, 24.8534, 5.5746)
Luminance0.2485 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F8728 #28409F
analogous
#9F4C28 #9F8728 #7C9F28
triadic
#9F8728 #289F87 #87289F
tetradic
#9F8728 #289F4C #28409F #9F287C
square
#9F8728 #289F4C #28409F #9F287C
split-complementary
#9F8728 #287C9F #4C289F
monochromatic
#3D340F #6E5D1C #9F8728 #CDAF37 #D9C268

Accessibility & contrast

On white

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

On black

5.97
#9F8728 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F8728
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F8728#FFFFFF#000000##000000
##9F87281.003.525.975.97
#FFFFFF3.521.0021.0021.00
#0000005.9721.001.001.00
##0000005.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#968418
Deuteranopia (green-blind)
#9C8C2E
Tritanopia (blue-blind)
#AC7C74
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #9f8728;
/* rgb */ color: rgb(159, 135, 40);
/* oklch */ color: oklch(62.8% 0.114 94.3);
Tailwind
colors: {
  custom: {
    50: '#bfa969',
    500: '#9f8728',
    950: '#000000',
  },
}
SCSS
$custom: #9f8728;
$custom-light: #bfa969;
$custom-dark: #000000;
JSON
{
  "hex": "#9f8728",
  "rgb": {
    "r": 159,
    "g": 135,
    "b": 40
  },
  "hsl": {
    "h": 47.899,
    "s": 59.799,
    "l": 39.02
  },
  "oklch": {
    "l": 0.62837,
    "c": 0.11398,
    "h": 94.3
  },
  "luminance": 0.24852
}

Semantic roles & 50–950 ramp

primary
#9F8728
secondary
#6476BF
accent
#65E345
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#130F07
muted
#827F7A

Preview Lab

Preview with #9F8728

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

Preview Lab → · Contrast checker → · Palette generator →

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