#9F8A25#9F8A25

#9F8A25 is a light, moderate yellow. Relative luminance 0.257; OKLCH L 63.5% C 0.118 H 96.8°. Best body text is #000000 at 6.14:1 contrast (WCAG AA passes).

Color values

HEX#9F8A25
RGBrgb(159, 138, 37)
HSLhsl(50, 62%, 38%)
HSVhsv(50, 77%, 62%)
CMYKcmyk(0%, 13.2%, 76.7%, 37.6%)
CIE-LABlab(57.73, -3.02, 53.39)
CIE-LCHlch(57.73, 53.47, 93.24°)
OKLaboklab(63.47% -0.014 0.1171)
OKLCHoklch(63.47% 0.118 96.8)
XYZxyz(23.7217, 25.6827, 5.4577)
Luminance0.2568 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F8A25 #253A9F
analogous
#9F4D25 #9F8A25 #779F25
triadic
#9F8A25 #259F8A #8A259F
tetradic
#9F8A25 #259F4D #253A9F #9F2577
square
#9F8A25 #259F4D #253A9F #9F2577
split-complementary
#9F8A25 #25779F #4D259F
monochromatic
#3C340E #6D5F19 #9F8A25 #CFB432 #DBC664

Accessibility & contrast

On white

3.42
#9F8A25 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.14
#9F8A25 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F8A25
6.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F8A25#FFFFFF#000000##000000
##9F8A251.003.426.146.14
#FFFFFF3.421.0021.0021.00
#0000006.1421.001.001.00
##0000006.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#998712
Deuteranopia (green-blind)
#9E8E2C
Tritanopia (blue-blind)
#AC7F77
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #9f8a25;
/* rgb */ color: rgb(159, 138, 37);
/* oklch */ color: oklch(63.5% 0.118 96.8);
Tailwind
colors: {
  custom: {
    50: '#bfab68',
    500: '#9f8a25',
    950: '#000000',
  },
}
SCSS
$custom: #9f8a25;
$custom-light: #bfab68;
$custom-dark: #000000;
JSON
{
  "hex": "#9f8a25",
  "rgb": {
    "r": 159,
    "g": 138,
    "b": 37
  },
  "hsl": {
    "h": 49.672,
    "s": 62.245,
    "l": 38.431
  },
  "oklch": {
    "l": 0.63465,
    "c": 0.11793,
    "h": 96.8
  },
  "luminance": 0.25681
}

Semantic roles & 50–950 ramp

primary
#9F8A25
secondary
#5F70C0
accent
#5FE542
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131006
muted
#827F7A

Preview Lab

Preview with #9F8A25

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

Preview Lab → · Contrast checker → · Palette generator →

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