#9F8D1B#9F8D1B

#9F8D1B is a light, vivid yellow. Relative luminance 0.265; OKLCH L 64.1% C 0.125 H 99.5°. Best body text is #000000 at 6.30:1 contrast (WCAG AA passes).

Color values

HEX#9F8D1B
RGBrgb(159, 141, 27)
HSLhsl(52, 71%, 36%)
HSVhsv(52, 83%, 62%)
CMYKcmyk(0%, 11.3%, 83%, 37.6%)
CIE-LABlab(58.51, -5.04, 57.39)
CIE-LCHlch(58.51, 57.61, 95.01°)
OKLaboklab(64.06% -0.0207 0.1236)
OKLCHoklch(64.06% 0.125 99.5)
XYZxyz(24.0220, 26.5010, 4.8866)
Luminance0.2650 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F8D1B #1B2D9F
analogous
#9F4B1B #9F8D1B #6F9F1B
triadic
#9F8D1B #1B9F8D #8D1B9F
tetradic
#9F8D1B #1B9F4B #1B2D9F #9F1B6F
square
#9F8D1B #1B9F4B #1B2D9F #9F1B6F
split-complementary
#9F8D1B #1B6F9F #4B1B9F
monochromatic
#363009 #6B5F12 #9F8D1B #D3BB24 #E2CE53

Accessibility & contrast

On white

3.33
#9F8D1B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.30
#9F8D1B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F8D1B
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F8D1B#FFFFFF#000000##000000
##9F8D1B1.003.336.306.30
#FFFFFF3.331.0021.0021.00
#0000006.3021.001.001.00
##0000006.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#9C8900
Deuteranopia (green-blind)
#A18F24
Tritanopia (blue-blind)
#AC8278
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #9f8d1b;
/* rgb */ color: rgb(159, 141, 27);
/* oklch */ color: oklch(64.1% 0.125 99.5);
Tailwind
colors: {
  custom: {
    50: '#bfad63',
    500: '#9f8d1b',
    950: '#000000',
  },
}
SCSS
$custom: #9f8d1b;
$custom-light: #bfad63;
$custom-dark: #000000;
JSON
{
  "hex": "#9f8d1b",
  "rgb": {
    "r": 159,
    "g": 141,
    "b": 27
  },
  "hsl": {
    "h": 51.818,
    "s": 70.968,
    "l": 36.471
  },
  "oklch": {
    "l": 0.64063,
    "c": 0.12534,
    "h": 99.5
  },
  "luminance": 0.265
}

Semantic roles & 50–950 ramp

primary
#9F8D1B
secondary
#5161C5
accent
#53EE3A
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131006
muted
#827F7A

Preview Lab

Preview with #9F8D1B

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

Preview Lab → · Contrast checker → · Palette generator →

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