#9F8A1C#9F8A1C

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

Color values

HEX#9F8A1C
RGBrgb(159, 138, 28)
HSLhsl(50, 70%, 37%)
HSVhsv(50, 82%, 62%)
CMYKcmyk(0%, 13.2%, 82.4%, 37.6%)
CIE-LABlab(57.69, -3.36, 56.38)
CIE-LCHlch(57.69, 56.48, 93.41°)
OKLaboklab(63.41% -0.0159 0.1216)
OKLCHoklch(63.41% 0.123 97.4)
XYZxyz(23.5974, 25.6330, 4.8031)
Luminance0.2563 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F8A1C #1C319F
analogous
#9F491C #9F8A1C #739F1C
triadic
#9F8A1C #1C9F8A #8A1C9F
tetradic
#9F8A1C #1C9F49 #1C319F #9F1C73
square
#9F8A1C #1C9F49 #1C319F #9F1C73
split-complementary
#9F8A1C #1C739F #491C9F
monochromatic
#37300A #6B5D13 #9F8A1C #D3B725 #E1CA54

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9F8A1C#FFFFFF#000000##000000
##9F8A1C1.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: #9f8a1c;
/* rgb */ color: rgb(159, 138, 28);
/* oklch */ color: oklch(63.4% 0.123 97.4);
Tailwind
colors: {
  custom: {
    50: '#c0ab63',
    500: '#9f8a1c',
    950: '#000000',
  },
}
SCSS
$custom: #9f8a1c;
$custom-light: #c0ab63;
$custom-dark: #000000;
JSON
{
  "hex": "#9f8a1c",
  "rgb": {
    "r": 159,
    "g": 138,
    "b": 28
  },
  "hsl": {
    "h": 50.382,
    "s": 70.053,
    "l": 36.667
  },
  "oklch": {
    "l": 0.63413,
    "c": 0.12266,
    "h": 97.4
  },
  "luminance": 0.25632
}

Semantic roles & 50–950 ramp

primary
#9F8A1C
secondary
#5365C4
accent
#57ED3B
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131006
muted
#827F7A

Preview Lab

Preview with #9F8A1C

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

Preview Lab → · Contrast checker → · Palette generator →

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