#9F8518#9F8518

#9F8518 is a light, vivid yellow. Relative luminance 0.242; OKLCH L 62.3% C 0.121 H 94.2°. Best body text is #000000 at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#9F8518
RGBrgb(159, 133, 24)
HSLhsl(48, 74%, 36%)
HSVhsv(48, 85%, 62%)
CMYKcmyk(0%, 16.4%, 84.9%, 37.6%)
CIE-LABlab(56.30, -0.73, 56.37)
CIE-LCHlch(56.30, 56.37, 90.75°)
OKLaboklab(62.31% -0.0088 0.1208)
OKLCHoklch(62.31% 0.121 94.2)
XYZxyz(22.8518, 24.2133, 4.3340)
Luminance0.2421 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F8518 #18329F
analogous
#9F4118 #9F8518 #759F18
triadic
#9F8518 #189F85 #85189F
tetradic
#9F8518 #189F41 #18329F #9F1875
square
#9F8518 #189F41 #18329F #9F1875
split-complementary
#9F8518 #18759F #41189F
monochromatic
#352C08 #6A5910 #9F8518 #D4B120 #E4C74D

Accessibility & contrast

On white

3.59
#9F8518 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.84
#9F8518 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F8518
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F8518#FFFFFF#000000##000000
##9F85181.003.595.845.84
#FFFFFF3.591.0021.0021.00
#0000005.8421.001.001.00
##0000005.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#948200
Deuteranopia (green-blind)
#9B8A21
Tritanopia (blue-blind)
#AD7971
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #9f8518;
/* rgb */ color: rgb(159, 133, 24);
/* oklch */ color: oklch(62.3% 0.121 94.2);
Tailwind
colors: {
  custom: {
    50: '#c0a861',
    500: '#9f8518',
    950: '#000000',
  },
}
SCSS
$custom: #9f8518;
$custom-light: #c0a861;
$custom-dark: #000000;
JSON
{
  "hex": "#9f8518",
  "rgb": {
    "r": 159,
    "g": 133,
    "b": 24
  },
  "hsl": {
    "h": 48.444,
    "s": 73.77,
    "l": 35.882
  },
  "oklch": {
    "l": 0.6231,
    "c": 0.12109,
    "h": 94.2
  },
  "luminance": 0.24212
}

Semantic roles & 50–950 ramp

primary
#9F8518
secondary
#4D64C6
accent
#5BF037
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#130F05
muted
#827F7A

Preview Lab

Preview with #9F8518

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

Preview Lab → · Contrast checker → · Palette generator →

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