#9F8B1C#9F8B1C

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

Color values

HEX#9F8B1C
RGBrgb(159, 139, 28)
HSLhsl(51, 70%, 37%)
HSVhsv(51, 82%, 62%)
CMYKcmyk(0%, 12.6%, 82.4%, 37.6%)
CIE-LABlab(57.96, -3.91, 56.62)
CIE-LCHlch(57.96, 56.75, 93.95°)
OKLaboklab(63.63% -0.0174 0.1222)
OKLCHoklch(63.63% 0.123 98.1)
XYZxyz(23.7416, 25.9213, 4.8512)
Luminance0.2592 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F8B1C #1C309F
analogous
#9F4A1C #9F8B1C #729F1C
triadic
#9F8B1C #1C9F8B #8B1C9F
tetradic
#9F8B1C #1C9F4A #1C309F #9F1C72
square
#9F8B1C #1C9F4A #1C309F #9F1C72
split-complementary
#9F8B1C #1C729F #4A1C9F
monochromatic
#37300A #6B5E13 #9F8B1C #D3B825 #E1CC54

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9F8B1C#FFFFFF#000000##000000
##9F8B1C1.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)
#9F8E25
Tritanopia (blue-blind)
#AC8077
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #9f8b1c;
/* rgb */ color: rgb(159, 139, 28);
/* oklch */ color: oklch(63.6% 0.123 98.1);
Tailwind
colors: {
  custom: {
    50: '#bfac64',
    500: '#9f8b1c',
    950: '#000000',
  },
}
SCSS
$custom: #9f8b1c;
$custom-light: #bfac64;
$custom-dark: #000000;
JSON
{
  "hex": "#9f8b1c",
  "rgb": {
    "r": 159,
    "g": 139,
    "b": 28
  },
  "hsl": {
    "h": 50.84,
    "s": 70.053,
    "l": 36.667
  },
  "oklch": {
    "l": 0.63631,
    "c": 0.12339,
    "h": 98.1
  },
  "luminance": 0.2592
}

Semantic roles & 50–950 ramp

primary
#9F8B1C
secondary
#5364C4
accent
#56ED3B
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131006
muted
#827F7A

Preview Lab

Preview with #9F8B1C

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

Preview Lab → · Contrast checker → · Palette generator →

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