#9F9D2D#9F9D2D

#9F9D2D is a light, vivid yellow. Relative luminance 0.317; OKLCH L 67.7% C 0.130 H 108.4°. Best body text is #000000 at 7.33:1 contrast (WCAG AA passes).

Color values

HEX#9F9D2D
RGBrgb(159, 157, 45)
HSLhsl(59, 56%, 40%)
HSVhsv(59, 72%, 62%)
CMYKcmyk(0%, 1.3%, 71.7%, 37.6%)
CIE-LABlab(63.07, -12.84, 55.52)
CIE-LCHlch(63.07, 56.99, 103.02°)
OKLaboklab(67.73% -0.0409 0.1232)
OKLCHoklch(67.73% 0.13 108.4)
XYZxyz(26.8297, 31.6752, 7.1827)
Luminance0.3167 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F9D2D #2D2F9F
analogous
#9F642D #9F9D2D #689F2D
triadic
#9F9D2D #2D9F9D #9D2D9F
tetradic
#9F9D2D #2D9F64 #2D2F9F #9F2D68
square
#9F9D2D #2D9F64 #2D2F9F #9F2D68
split-complementary
#9F9D2D #2D689F #642D9F
monochromatic
#403F12 #6F6E20 #9F9D2D #C9C740 #D6D570

Accessibility & contrast

On white

2.86
#9F9D2D on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.33
#9F9D2D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9F9D2D
7.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F9D2D#FFFFFF#000000##000000
##9F9D2D1.002.867.337.33
#FFFFFF2.861.0021.0021.00
#0000007.3321.001.001.00
##0000007.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#AA971A
Deuteranopia (green-blind)
#AC9A35
Tritanopia (blue-blind)
#AB9387
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #9f9d2d;
/* rgb */ color: rgb(159, 157, 45);
/* oklch */ color: oklch(67.7% 0.130 108.4);
Tailwind
colors: {
  custom: {
    50: '#bfb96e',
    500: '#9f9d2d',
    950: '#000000',
  },
}
SCSS
$custom: #9f9d2d;
$custom-light: #bfb96e;
$custom-dark: #000000;
JSON
{
  "hex": "#9f9d2d",
  "rgb": {
    "r": 159,
    "g": 157,
    "b": 45
  },
  "hsl": {
    "h": 58.947,
    "s": 55.882,
    "l": 40
  },
  "oklch": {
    "l": 0.67726,
    "c": 0.12978,
    "h": 108.4
  },
  "luminance": 0.31674
}

Semantic roles & 50–950 ramp

primary
#9F9D2D
secondary
#6A6BBE
accent
#4BDF49
background
#FCFBF6
surface
#F8F6EC
border
#D1D0C7
text
#131108
muted
#82807B

Preview Lab

Preview with #9F9D2D

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

Preview Lab → · Contrast checker → · Palette generator →

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