#9F8A28#9F8A28

#9F8A28 is a light, moderate yellow. Relative luminance 0.257; OKLCH L 63.5% C 0.116 H 96.6°. Best body text is #000000 at 6.14:1 contrast (WCAG AA passes).

Color values

HEX#9F8A28
RGBrgb(159, 138, 40)
HSLhsl(49, 60%, 39%)
HSVhsv(49, 75%, 62%)
CMYKcmyk(0%, 13.2%, 74.8%, 37.6%)
CIE-LABlab(57.75, -2.88, 52.27)
CIE-LCHlch(57.75, 52.35, 93.16°)
OKLaboklab(63.49% -0.0133 0.1153)
OKLCHoklch(63.49% 0.116 96.6)
XYZxyz(23.7708, 25.7023, 5.7161)
Luminance0.2570 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F8A28 #283D9F
analogous
#9F4F28 #9F8A28 #799F28
triadic
#9F8A28 #289F8A #8A289F
tetradic
#9F8A28 #289F4F #283D9F #9F2879
square
#9F8A28 #289F4F #283D9F #9F2879
split-complementary
#9F8A28 #28799F #4F289F
monochromatic
#3D350F #6E601C #9F8A28 #CDB237 #D9C568

Accessibility & contrast

On white

3.42
#9F8A28 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.14
#9F8A28 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F8A28
6.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F8A28#FFFFFF#000000##000000
##9F8A281.003.426.146.14
#FFFFFF3.421.0021.0021.00
#0000006.1421.001.001.00
##0000006.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#988717
Deuteranopia (green-blind)
#9E8E2E
Tritanopia (blue-blind)
#AC7F77
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #9f8a28;
/* rgb */ color: rgb(159, 138, 40);
/* oklch */ color: oklch(63.5% 0.116 96.6);
Tailwind
colors: {
  custom: {
    50: '#bfab69',
    500: '#9f8a28',
    950: '#000000',
  },
}
SCSS
$custom: #9f8a28;
$custom-light: #bfab69;
$custom-dark: #000000;
JSON
{
  "hex": "#9f8a28",
  "rgb": {
    "r": 159,
    "g": 138,
    "b": 40
  },
  "hsl": {
    "h": 49.412,
    "s": 59.799,
    "l": 39.02
  },
  "oklch": {
    "l": 0.63486,
    "c": 0.1161,
    "h": 96.6
  },
  "luminance": 0.25701
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #9F8A28

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

Preview Lab → · Contrast checker → · Palette generator →

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