#9F8A1B#9F8A1B

#9F8A1B is a light, vivid yellow. Relative luminance 0.256; OKLCH L 63.4% C 0.123 H 97.5°. Best body text is #000000 at 6.13:1 contrast (WCAG AA passes).

Color values

HEX#9F8A1B
RGBrgb(159, 138, 27)
HSLhsl(50, 71%, 36%)
HSVhsv(50, 83%, 62%)
CMYKcmyk(0%, 13.2%, 83%, 37.6%)
CIE-LABlab(57.68, -3.40, 56.68)
CIE-LCHlch(57.68, 56.78, 93.43°)
OKLaboklab(63.41% -0.0161 0.1221)
OKLCHoklch(63.41% 0.123 97.5)
XYZxyz(23.5857, 25.6283, 4.7411)
Luminance0.2563 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F8A1B #1B309F
analogous
#9F481B #9F8A1B #729F1B
triadic
#9F8A1B #1B9F8A #8A1B9F
tetradic
#9F8A1B #1B9F48 #1B309F #9F1B72
square
#9F8A1B #1B9F48 #1B309F #9F1B72
split-complementary
#9F8A1B #1B729F #481B9F
monochromatic
#362F09 #6B5D12 #9F8A1B #D3B724 #E2CB53

Accessibility & contrast

On white

3.43
#9F8A1B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.13
#9F8A1B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F8A1B
6.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F8A1B#FFFFFF#000000##000000
##9F8A1B1.003.436.136.13
#FFFFFF3.431.0021.0021.00
#0000006.1321.001.001.00
##0000006.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#998700
Deuteranopia (green-blind)
#9E8E24
Tritanopia (blue-blind)
#AC7F76
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #9f8a1b;
/* rgb */ color: rgb(159, 138, 27);
/* oklch */ color: oklch(63.4% 0.123 97.5);
Tailwind
colors: {
  custom: {
    50: '#c0ab63',
    500: '#9f8a1b',
    950: '#000000',
  },
}
SCSS
$custom: #9f8a1b;
$custom-light: #c0ab63;
$custom-dark: #000000;
JSON
{
  "hex": "#9f8a1b",
  "rgb": {
    "r": 159,
    "g": 138,
    "b": 27
  },
  "hsl": {
    "h": 50.455,
    "s": 70.968,
    "l": 36.471
  },
  "oklch": {
    "l": 0.63408,
    "c": 0.12312,
    "h": 97.5
  },
  "luminance": 0.25627
}

Semantic roles & 50–950 ramp

primary
#9F8A1B
secondary
#5164C5
accent
#57EE3A
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131006
muted
#827F7A

Preview Lab

Preview with #9F8A1B

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

Preview Lab → · Contrast checker → · Palette generator →

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