#9F8E1F#9F8E1F

#9F8E1F is a light, vivid yellow. Relative luminance 0.268; OKLCH L 64.3% C 0.124 H 100.0°. Best body text is #000000 at 6.36:1 contrast (WCAG AA passes).

Color values

HEX#9F8E1F
RGBrgb(159, 142, 31)
HSLhsl(52, 67%, 37%)
HSVhsv(52, 81%, 62%)
CMYKcmyk(0%, 10.7%, 80.5%, 37.6%)
CIE-LABlab(58.80, -5.44, 56.43)
CIE-LCHlch(58.80, 56.69, 95.51°)
OKLaboklab(64.3% -0.0215 0.1224)
OKLCHoklch(64.3% 0.124 100)
XYZxyz(24.2196, 26.8171, 5.1965)
Luminance0.2682 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F8E1F #1F309F
analogous
#9F4E1F #9F8E1F #709F1F
triadic
#9F8E1F #1F9F8E #8E1F9F
tetradic
#9F8E1F #1F9F4E #1F309F #9F1F70
square
#9F8E1F #1F9F4E #1F309F #9F1F70
split-complementary
#9F8E1F #1F709F #4E1F9F
monochromatic
#39330B #6C6015 #9F8E1F #D2BC29 #DFCD5A

Accessibility & contrast

On white

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

On black

6.36
#9F8E1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F8E1F
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F8E1F#FFFFFF#000000##000000
##9F8E1F1.003.306.366.36
#FFFFFF3.301.0021.0021.00
#0000006.3621.001.001.00
##0000006.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#9C8A00
Deuteranopia (green-blind)
#A19028
Tritanopia (blue-blind)
#AC8379
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #9f8e1f;
/* rgb */ color: rgb(159, 142, 31);
/* oklch */ color: oklch(64.3% 0.124 100.0);
Tailwind
colors: {
  custom: {
    50: '#bfae65',
    500: '#9f8e1f',
    950: '#000000',
  },
}
SCSS
$custom: #9f8e1f;
$custom-light: #bfae65;
$custom-dark: #000000;
JSON
{
  "hex": "#9f8e1f",
  "rgb": {
    "r": 159,
    "g": 142,
    "b": 31
  },
  "hsl": {
    "h": 52.031,
    "s": 67.368,
    "l": 37.255
  },
  "oklch": {
    "l": 0.64303,
    "c": 0.12423,
    "h": 100
  },
  "luminance": 0.26816
}

Semantic roles & 50–950 ramp

primary
#9F8E1F
secondary
#5765C3
accent
#54EA3E
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131006
muted
#827F7A

Preview Lab

Preview with #9F8E1F

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

Preview Lab → · Contrast checker → · Palette generator →

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