#9F9D2F#9F9D2F

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

Color values

HEX#9F9D2F
RGBrgb(159, 157, 47)
HSLhsl(59, 54%, 40%)
HSVhsv(59, 70%, 62%)
CMYKcmyk(0%, 1.3%, 70.4%, 37.6%)
CIE-LABlab(63.09, -12.74, 54.77)
CIE-LCHlch(63.09, 56.24, 103.09°)
OKLaboklab(67.74% -0.0404 0.1219)
OKLCHoklch(67.74% 0.128 108.4)
XYZxyz(26.8691, 31.6910, 7.3904)
Luminance0.3169 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F9D2F #2F319F
analogous
#9F652F #9F9D2F #699F2F
triadic
#9F9D2F #2F9F9D #9D2F9F
tetradic
#9F9D2F #2F9F65 #2F319F #9F2F69
square
#9F9D2F #2F9F65 #2F319F #9F2F69
split-complementary
#9F9D2F #2F699F #652F9F
monochromatic
#414013 #706E21 #9F9D2F #C8C544 #D6D473

Accessibility & contrast

On white

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

On black

7.34
#9F9D2F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9F9D2F
7.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F9D2F#FFFFFF#000000##000000
##9F9D2F1.002.867.347.34
#FFFFFF2.861.0021.0021.00
#0000007.3421.001.001.00
##0000007.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#AA971D
Deuteranopia (green-blind)
#AC9A37
Tritanopia (blue-blind)
#AA9387
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #9f9d2f;
/* rgb */ color: rgb(159, 157, 47);
/* oklch */ color: oklch(67.7% 0.128 108.4);
Tailwind
colors: {
  custom: {
    50: '#bfb96f',
    500: '#9f9d2f',
    950: '#000000',
  },
}
SCSS
$custom: #9f9d2f;
$custom-light: #bfb96f;
$custom-dark: #000000;
JSON
{
  "hex": "#9f9d2f",
  "rgb": {
    "r": 159,
    "g": 157,
    "b": 47
  },
  "hsl": {
    "h": 58.929,
    "s": 54.369,
    "l": 40.392
  },
  "oklch": {
    "l": 0.6774,
    "c": 0.12846,
    "h": 108.4
  },
  "luminance": 0.3169
}

Semantic roles & 50–950 ramp

primary
#9F9D2F
secondary
#6D6EBD
accent
#4DDE4A
background
#FCFBF6
surface
#F8F6EC
border
#D1D0C7
text
#131108
muted
#82807B

Preview Lab

Preview with #9F9D2F

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

Preview Lab → · Contrast checker → · Palette generator →

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