#9F8F1F#9F8F1F

#9F8F1F is a light, vivid yellow. Relative luminance 0.271; OKLCH L 64.5% C 0.125 H 100.6°. Best body text is #000000 at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#9F8F1F
RGBrgb(159, 143, 31)
HSLhsl(53, 67%, 37%)
HSVhsv(53, 81%, 62%)
CMYKcmyk(0%, 10.1%, 80.5%, 37.6%)
CIE-LABlab(59.08, -5.99, 56.67)
CIE-LCHlch(59.08, 56.99, 96.03°)
OKLaboklab(64.52% -0.023 0.1229)
OKLCHoklch(64.52% 0.125 100.6)
XYZxyz(24.3691, 27.1160, 5.2464)
Luminance0.2712 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F8F1F #1F2F9F
analogous
#9F4F1F #9F8F1F #6F9F1F
triadic
#9F8F1F #1F9F8F #8F1F9F
tetradic
#9F8F1F #1F9F4F #1F2F9F #9F1F6F
square
#9F8F1F #1F9F4F #1F2F9F #9F1F6F
split-complementary
#9F8F1F #1F6F9F #4F1F9F
monochromatic
#39330B #6C6115 #9F8F1F #D2BD29 #DFCE5A

Accessibility & contrast

On white

3.27
#9F8F1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.42
#9F8F1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F8F1F
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F8F1F#FFFFFF#000000##000000
##9F8F1F1.003.276.426.42
#FFFFFF3.271.0021.0021.00
#0000006.4221.001.001.00
##0000006.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#9D8B00
Deuteranopia (green-blind)
#A29128
Tritanopia (blue-blind)
#AC847A
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #9f8f1f;
/* rgb */ color: rgb(159, 143, 31);
/* oklch */ color: oklch(64.5% 0.125 100.6);
Tailwind
colors: {
  custom: {
    50: '#bfaf65',
    500: '#9f8f1f',
    950: '#000000',
  },
}
SCSS
$custom: #9f8f1f;
$custom-light: #bfaf65;
$custom-dark: #000000;
JSON
{
  "hex": "#9f8f1f",
  "rgb": {
    "r": 159,
    "g": 143,
    "b": 31
  },
  "hsl": {
    "h": 52.5,
    "s": 67.368,
    "l": 37.255
  },
  "oklch": {
    "l": 0.64523,
    "c": 0.12503,
    "h": 100.6
  },
  "luminance": 0.27115
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #9F8F1F

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

Preview Lab → · Contrast checker → · Palette generator →

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