#9F8F29#9F8F29

#9F8F29 is a light, moderate yellow. Relative luminance 0.272; OKLCH L 64.6% C 0.119 H 100.1°. Best body text is #000000 at 6.44:1 contrast (WCAG AA passes).

Color values

HEX#9F8F29
RGBrgb(159, 143, 41)
HSLhsl(52, 59%, 39%)
HSVhsv(52, 74%, 62%)
CMYKcmyk(0%, 10.1%, 74.2%, 37.6%)
CIE-LABlab(59.14, -5.57, 53.22)
CIE-LCHlch(59.14, 53.51, 95.97°)
OKLaboklab(64.59% -0.0208 0.1175)
OKLCHoklch(64.59% 0.119 100.1)
XYZxyz(24.5219, 27.1771, 6.0514)
Luminance0.2718 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F8F29 #29399F
analogous
#9F5429 #9F8F29 #749F29
triadic
#9F8F29 #299F8F #8F299F
tetradic
#9F8F29 #299F54 #29399F #9F2974
square
#9F8F29 #299F54 #29399F #9F2974
split-complementary
#9F8F29 #29749F #54299F
monochromatic
#3E3710 #6E631C #9F8F29 #CCB839 #D9CA6A

Accessibility & contrast

On white

3.26
#9F8F29 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.44
#9F8F29 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F8F29
6.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F8F29#FFFFFF#000000##000000
##9F8F291.003.266.446.44
#FFFFFF3.261.0021.0021.00
#0000006.4421.001.001.00
##0000006.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#9D8B17
Deuteranopia (green-blind)
#A19130
Tritanopia (blue-blind)
#AC847B
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #9f8f29;
/* rgb */ color: rgb(159, 143, 41);
/* oklch */ color: oklch(64.6% 0.119 100.1);
Tailwind
colors: {
  custom: {
    50: '#bfaf6a',
    500: '#9f8f29',
    950: '#000000',
  },
}
SCSS
$custom: #9f8f29;
$custom-light: #bfaf6a;
$custom-dark: #000000;
JSON
{
  "hex": "#9f8f29",
  "rgb": {
    "r": 159,
    "g": 143,
    "b": 41
  },
  "hsl": {
    "h": 51.864,
    "s": 59,
    "l": 39.216
  },
  "oklch": {
    "l": 0.64586,
    "c": 0.11937,
    "h": 100.1
  },
  "luminance": 0.27176
}

Semantic roles & 50–950 ramp

primary
#9F8F29
secondary
#6571BF
accent
#5BE246
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131007
muted
#827F7A

Preview Lab

Preview with #9F8F29

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

Preview Lab → · Contrast checker → · Palette generator →

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