#9F8D25#9F8D25

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

Color values

HEX#9F8D25
RGBrgb(159, 141, 37)
HSLhsl(51, 62%, 38%)
HSVhsv(51, 77%, 62%)
CMYKcmyk(0%, 11.3%, 76.7%, 37.6%)
CIE-LABlab(58.56, -4.66, 54.16)
CIE-LCHlch(58.56, 54.36, 94.92°)
OKLaboklab(64.12% -0.0187 0.1187)
OKLCHoklch(64.12% 0.12 98.9)
XYZxyz(24.1581, 26.5555, 5.6031)
Luminance0.2655 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F8D25 #25379F
analogous
#9F5025 #9F8D25 #749F25
triadic
#9F8D25 #259F8D #8D259F
tetradic
#9F8D25 #259F50 #25379F #9F2574
square
#9F8D25 #259F50 #25379F #9F2574
split-complementary
#9F8D25 #25749F #50259F
monochromatic
#3C350E #6D6119 #9F8D25 #CFB832 #DBC964

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9F8D25#FFFFFF#000000##000000
##9F8D251.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)
#9B8910
Deuteranopia (green-blind)
#A0902C
Tritanopia (blue-blind)
#AC8279
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #9f8d25;
/* rgb */ color: rgb(159, 141, 37);
/* oklch */ color: oklch(64.1% 0.120 98.9);
Tailwind
colors: {
  custom: {
    50: '#bfae68',
    500: '#9f8d25',
    950: '#000000',
  },
}
SCSS
$custom: #9f8d25;
$custom-light: #bfae68;
$custom-dark: #000000;
JSON
{
  "hex": "#9f8d25",
  "rgb": {
    "r": 159,
    "g": 141,
    "b": 37
  },
  "hsl": {
    "h": 51.148,
    "s": 62.245,
    "l": 38.431
  },
  "oklch": {
    "l": 0.6412,
    "c": 0.1202,
    "h": 98.9
  },
  "luminance": 0.26554
}

Semantic roles & 50–950 ramp

primary
#9F8D25
secondary
#5F6EC0
accent
#5BE542
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131007
muted
#827F7A

Preview Lab

Preview with #9F8D25

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

Preview Lab → · Contrast checker → · Palette generator →

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