#9F9E1F#9F9E1F

#9F9E1F is a light, vivid yellow. Relative luminance 0.319; OKLCH L 67.9% C 0.139 H 109.1°. Best body text is #000000 at 7.38:1 contrast (WCAG AA passes).

Color values

HEX#9F9E1F
RGBrgb(159, 158, 31)
HSLhsl(60, 67%, 37%)
HSVhsv(60, 81%, 62%)
CMYKcmyk(0%, 0.6%, 80.5%, 37.6%)
CIE-LABlab(63.28, -13.96, 60.38)
CIE-LCHlch(63.28, 61.98, 103.02°)
OKLaboklab(67.87% -0.0453 0.1309)
OKLCHoklch(67.87% 0.139 109.1)
XYZxyz(26.7733, 31.9244, 6.0478)
Luminance0.3192 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F9E1F #1F209F
analogous
#9F5E1F #9F9E1F #609F1F
triadic
#9F9E1F #1F9F9E #9E1F9F
tetradic
#9F9E1F #1F9F5E #1F209F #9F1F60
square
#9F9E1F #1F9F5E #1F209F #9F1F60
split-complementary
#9F9E1F #1F609F #5E1F9F
monochromatic
#39380B #6C6B15 #9F9E1F #D2D129 #DFDE5A

Accessibility & contrast

On white

2.84
#9F9E1F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.38
#9F9E1F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9F9E1F
7.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F9E1F#FFFFFF#000000##000000
##9F9E1F1.002.847.387.38
#FFFFFF2.841.0021.0021.00
#0000007.3821.001.001.00
##0000007.3821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9f9e1f;
/* rgb */ color: rgb(159, 158, 31);
/* oklch */ color: oklch(67.9% 0.139 109.1);
Tailwind
colors: {
  custom: {
    50: '#bfba67',
    500: '#9f9e1f',
    950: '#000000',
  },
}
SCSS
$custom: #9f9e1f;
$custom-light: #bfba67;
$custom-dark: #000000;
JSON
{
  "hex": "#9f9e1f",
  "rgb": {
    "r": 159,
    "g": 158,
    "b": 31
  },
  "hsl": {
    "h": 59.531,
    "s": 67.368,
    "l": 37.255
  },
  "oklch": {
    "l": 0.67867,
    "c": 0.1385,
    "h": 109.1
  },
  "luminance": 0.31924
}

Semantic roles & 50–950 ramp

primary
#9F9E1F
secondary
#5758C3
accent
#3FEA3E
background
#FCFBF6
surface
#F8F6EB
border
#D1D0C6
text
#131107
muted
#82807A

Preview Lab

Preview with #9F9E1F

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

Preview Lab → · Contrast checker → · Palette generator →

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