#9F8D29#9F8D29

#9F8D29 is a light, moderate yellow. Relative luminance 0.266; OKLCH L 64.1% C 0.118 H 98.7°. Best body text is #000000 at 6.32:1 contrast (WCAG AA passes).

Color values

HEX#9F8D29
RGBrgb(159, 141, 41)
HSLhsl(51, 59%, 39%)
HSVhsv(51, 74%, 62%)
CMYKcmyk(0%, 11.3%, 74.2%, 37.6%)
CIE-LABlab(58.59, -4.48, 52.69)
CIE-LCHlch(58.59, 52.88, 94.86°)
OKLaboklab(64.15% -0.0178 0.1164)
OKLCHoklch(64.15% 0.118 98.7)
XYZxyz(24.2244, 26.5820, 5.9523)
Luminance0.2658 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F8D29 #293B9F
analogous
#9F5229 #9F8D29 #769F29
triadic
#9F8D29 #299F8D #8D299F
tetradic
#9F8D29 #299F52 #293B9F #9F2976
square
#9F8D29 #299F52 #293B9F #9F2976
split-complementary
#9F8D29 #29769F #52299F
monochromatic
#3E3710 #6E621C #9F8D29 #CCB639 #D9C86A

Accessibility & contrast

On white

3.32
#9F8D29 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.32
#9F8D29 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F8D29
6.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F8D29#FFFFFF#000000##000000
##9F8D291.003.326.326.32
#FFFFFF3.321.0021.0021.00
#0000006.3221.001.001.00
##0000006.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#9B8918
Deuteranopia (green-blind)
#A0902F
Tritanopia (blue-blind)
#AC8279
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #9f8d29;
/* rgb */ color: rgb(159, 141, 41);
/* oklch */ color: oklch(64.1% 0.118 98.7);
Tailwind
colors: {
  custom: {
    50: '#bfae6a',
    500: '#9f8d29',
    950: '#000000',
  },
}
SCSS
$custom: #9f8d29;
$custom-light: #bfae6a;
$custom-dark: #000000;
JSON
{
  "hex": "#9f8d29",
  "rgb": {
    "r": 159,
    "g": 141,
    "b": 41
  },
  "hsl": {
    "h": 50.847,
    "s": 59,
    "l": 39.216
  },
  "oklch": {
    "l": 0.64147,
    "c": 0.11776,
    "h": 98.7
  },
  "luminance": 0.26581
}

Semantic roles & 50–950 ramp

primary
#9F8D29
secondary
#6573BF
accent
#5DE246
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131007
muted
#827F7A

Preview Lab

Preview with #9F8D29

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

Preview Lab → · Contrast checker → · Palette generator →

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