#9F8B1B#9F8B1B

#9F8B1B is a light, vivid yellow. Relative luminance 0.259; OKLCH L 63.6% C 0.124 H 98.2°. Best body text is #000000 at 6.18:1 contrast (WCAG AA passes).

Color values

HEX#9F8B1B
RGBrgb(159, 139, 27)
HSLhsl(51, 71%, 36%)
HSVhsv(51, 83%, 62%)
CMYKcmyk(0%, 12.6%, 83%, 37.6%)
CIE-LABlab(57.96, -3.94, 56.91)
CIE-LCHlch(57.96, 57.05, 93.96°)
OKLaboklab(63.63% -0.0176 0.1226)
OKLCHoklch(63.63% 0.124 98.2)
XYZxyz(23.7298, 25.9166, 4.7892)
Luminance0.2591 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F8B1B #1B2F9F
analogous
#9F491B #9F8B1B #719F1B
triadic
#9F8B1B #1B9F8B #8B1B9F
tetradic
#9F8B1B #1B9F49 #1B2F9F #9F1B71
square
#9F8B1B #1B9F49 #1B2F9F #9F1B71
split-complementary
#9F8B1B #1B719F #491B9F
monochromatic
#363009 #6B5D12 #9F8B1B #D3B924 #E2CC53

Accessibility & contrast

On white

3.40
#9F8B1B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.18
#9F8B1B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F8B1B
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F8B1B#FFFFFF#000000##000000
##9F8B1B1.003.406.186.18
#FFFFFF3.401.0021.0021.00
#0000006.1821.001.001.00
##0000006.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#9A8700
Deuteranopia (green-blind)
#9F8E24
Tritanopia (blue-blind)
#AC8077
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #9f8b1b;
/* rgb */ color: rgb(159, 139, 27);
/* oklch */ color: oklch(63.6% 0.124 98.2);
Tailwind
colors: {
  custom: {
    50: '#c0ac63',
    500: '#9f8b1b',
    950: '#000000',
  },
}
SCSS
$custom: #9f8b1b;
$custom-light: #c0ac63;
$custom-dark: #000000;
JSON
{
  "hex": "#9f8b1b",
  "rgb": {
    "r": 159,
    "g": 139,
    "b": 27
  },
  "hsl": {
    "h": 50.909,
    "s": 70.968,
    "l": 36.471
  },
  "oklch": {
    "l": 0.63626,
    "c": 0.12385,
    "h": 98.2
  },
  "luminance": 0.25915
}

Semantic roles & 50–950 ramp

primary
#9F8B1B
secondary
#5163C5
accent
#55EE3A
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131006
muted
#827F7A

Preview Lab

Preview with #9F8B1B

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

Preview Lab → · Contrast checker → · Palette generator →

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