#9F8D21#9F8D21

#9F8D21 is a light, vivid yellow. Relative luminance 0.265; OKLCH L 64.1% C 0.122 H 99.2°. Best body text is #000000 at 6.31:1 contrast (WCAG AA passes).

Color values

HEX#9F8D21
RGBrgb(159, 141, 33)
HSLhsl(51, 66%, 38%)
HSVhsv(51, 79%, 62%)
CMYKcmyk(0%, 11.3%, 79.2%, 37.6%)
CIE-LABlab(58.54, -4.82, 55.53)
CIE-LCHlch(58.54, 55.74, 94.96°)
OKLaboklab(64.1% -0.0196 0.1209)
OKLCHoklch(64.1% 0.122 99.2)
XYZxyz(24.0987, 26.5317, 5.2903)
Luminance0.2653 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F8D21 #21339F
analogous
#9F4E21 #9F8D21 #729F21
triadic
#9F8D21 #219F8D #8D219F
tetradic
#9F8D21 #219F4E #21339F #9F2172
square
#9F8D21 #219F4E #21339F #9F2172
split-complementary
#9F8D21 #21729F #4E219F
monochromatic
#3A330C #6C6016 #9F8D21 #D2BA2C #DDCB5D

Accessibility & contrast

On white

3.33
#9F8D21 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.31
#9F8D21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F8D21
6.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F8D21#FFFFFF#000000##000000
##9F8D211.003.336.316.31
#FFFFFF3.331.0021.0021.00
#0000006.3121.001.001.00
##0000006.3121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9f8d21;
/* rgb */ color: rgb(159, 141, 33);
/* oklch */ color: oklch(64.1% 0.122 99.2);
Tailwind
colors: {
  custom: {
    50: '#bfae66',
    500: '#9f8d21',
    950: '#000000',
  },
}
SCSS
$custom: #9f8d21;
$custom-light: #bfae66;
$custom-dark: #000000;
JSON
{
  "hex": "#9f8d21",
  "rgb": {
    "r": 159,
    "g": 141,
    "b": 33
  },
  "hsl": {
    "h": 51.429,
    "s": 65.625,
    "l": 37.647
  },
  "oklch": {
    "l": 0.64095,
    "c": 0.12242,
    "h": 99.2
  },
  "luminance": 0.2653
}

Semantic roles & 50–950 ramp

primary
#9F8D21
secondary
#5A69C2
accent
#57E93F
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131006
muted
#827F7A

Preview Lab

Preview with #9F8D21

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

Preview Lab → · Contrast checker → · Palette generator →

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