#9F8E25#9F8E25

#9F8E25 is a light, vivid yellow. Relative luminance 0.269; OKLCH L 64.3% C 0.121 H 99.6°. Best body text is #000000 at 6.37:1 contrast (WCAG AA passes).

Color values

HEX#9F8E25
RGBrgb(159, 142, 37)
HSLhsl(52, 62%, 38%)
HSVhsv(52, 77%, 62%)
CMYKcmyk(0%, 10.7%, 76.7%, 37.6%)
CIE-LABlab(58.84, -5.20, 54.42)
CIE-LCHlch(58.84, 54.67, 95.46°)
OKLaboklab(64.34% -0.0202 0.1193)
OKLCHoklch(64.34% 0.121 99.6)
XYZxyz(24.3062, 26.8517, 5.6525)
Luminance0.2685 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F8E25 #25369F
analogous
#9F5125 #9F8E25 #739F25
triadic
#9F8E25 #259F8E #8E259F
tetradic
#9F8E25 #259F51 #25369F #9F2573
square
#9F8E25 #259F51 #25369F #9F2573
split-complementary
#9F8E25 #25739F #51259F
monochromatic
#3C350E #6D6219 #9F8E25 #CFB932 #DBCA64

Accessibility & contrast

On white

3.30
#9F8E25 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.37
#9F8E25 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F8E25
6.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F8E25#FFFFFF#000000##000000
##9F8E251.003.306.376.37
#FFFFFF3.301.0021.0021.00
#0000006.3721.001.001.00
##0000006.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#9C8A10
Deuteranopia (green-blind)
#A1902C
Tritanopia (blue-blind)
#AC837A
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #9f8e25;
/* rgb */ color: rgb(159, 142, 37);
/* oklch */ color: oklch(64.3% 0.121 99.6);
Tailwind
colors: {
  custom: {
    50: '#bfae68',
    500: '#9f8e25',
    950: '#000000',
  },
}
SCSS
$custom: #9f8e25;
$custom-light: #bfae68;
$custom-dark: #000000;
JSON
{
  "hex": "#9f8e25",
  "rgb": {
    "r": 159,
    "g": 142,
    "b": 37
  },
  "hsl": {
    "h": 51.639,
    "s": 62.245,
    "l": 38.431
  },
  "oklch": {
    "l": 0.64339,
    "c": 0.12099,
    "h": 99.6
  },
  "luminance": 0.26851
}

Semantic roles & 50–950 ramp

primary
#9F8E25
secondary
#5F6DC0
accent
#59E542
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131007
muted
#827F7A

Preview Lab

Preview with #9F8E25

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

Preview Lab → · Contrast checker → · Palette generator →

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