#9F8E1B#9F8E1B

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

Color values

HEX#9F8E1B
RGBrgb(159, 142, 27)
HSLhsl(52, 71%, 36%)
HSVhsv(52, 83%, 62%)
CMYKcmyk(0%, 10.7%, 83%, 37.6%)
CIE-LABlab(58.79, -5.58, 57.63)
CIE-LCHlch(58.79, 57.90, 95.53°)
OKLaboklab(64.28% -0.0222 0.1241)
OKLCHoklch(64.28% 0.126 100.1)
XYZxyz(24.1701, 26.7973, 4.9360)
Luminance0.2680 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F8E1B #1B2C9F
analogous
#9F4C1B #9F8E1B #6E9F1B
triadic
#9F8E1B #1B9F8E #8E1B9F
tetradic
#9F8E1B #1B9F4C #1B2C9F #9F1B6E
square
#9F8E1B #1B9F4C #1B2C9F #9F1B6E
split-complementary
#9F8E1B #1B6E9F #4C1B9F
monochromatic
#363109 #6B5F12 #9F8E1B #D3BD24 #E2CF53

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9F8E1B#FFFFFF#000000##000000
##9F8E1B1.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)
#9D8A00
Deuteranopia (green-blind)
#A19025
Tritanopia (blue-blind)
#AC8379
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #9f8e1b;
/* rgb */ color: rgb(159, 142, 27);
/* oklch */ color: oklch(64.3% 0.126 100.1);
Tailwind
colors: {
  custom: {
    50: '#bfae64',
    500: '#9f8e1b',
    950: '#000000',
  },
}
SCSS
$custom: #9f8e1b;
$custom-light: #bfae64;
$custom-dark: #000000;
JSON
{
  "hex": "#9f8e1b",
  "rgb": {
    "r": 159,
    "g": 142,
    "b": 27
  },
  "hsl": {
    "h": 52.273,
    "s": 70.968,
    "l": 36.471
  },
  "oklch": {
    "l": 0.64283,
    "c": 0.12611,
    "h": 100.1
  },
  "luminance": 0.26796
}

Semantic roles & 50–950 ramp

primary
#9F8E1B
secondary
#5160C5
accent
#51EE3A
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131006
muted
#827F7A

Preview Lab

Preview with #9F8E1B

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

Preview Lab → · Contrast checker → · Palette generator →

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