#9F8215#9F8215

#9F8215 is a mid, vivid yellow. Relative luminance 0.234; OKLCH L 61.7% C 0.121 H 92.2°. Best body text is #000000 at 5.68:1 contrast (WCAG AA passes).

Color values

HEX#9F8215
RGBrgb(159, 130, 21)
HSLhsl(47, 77%, 35%)
HSVhsv(47, 87%, 62%)
CMYKcmyk(0%, 18.2%, 86.8%, 37.6%)
CIE-LABlab(55.47, 0.85, 56.50)
CIE-LCHlch(55.47, 56.51, 89.14°)
OKLaboklab(61.65% -0.0045 0.1204)
OKLCHoklch(61.65% 0.121 92.2)
XYZxyz(22.4174, 23.3918, 4.0436)
Luminance0.2339 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F8215 #15329F
analogous
#9F3D15 #9F8215 #779F15
triadic
#9F8215 #159F82 #82159F
tetradic
#9F8215 #159F3D #15329F #9F1577
square
#9F8215 #159F3D #15329F #9F1577
split-complementary
#9F8215 #15779F #3D159F
monochromatic
#332A07 #69560E #9F8215 #D5AE1C #E7C548

Accessibility & contrast

On white

3.70
#9F8215 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.68
#9F8215 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F8215
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F8215#FFFFFF#000000##000000
##9F82151.003.705.685.68
#FFFFFF3.701.0021.0021.00
#0000005.6821.001.001.00
##0000005.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#928000
Deuteranopia (green-blind)
#99881E
Tritanopia (blue-blind)
#AD766F
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #9f8215;
/* rgb */ color: rgb(159, 130, 21);
/* oklch */ color: oklch(61.7% 0.121 92.2);
Tailwind
colors: {
  custom: {
    50: '#c0a560',
    500: '#9f8215',
    950: '#000000',
  },
}
SCSS
$custom: #9f8215;
$custom-light: #c0a560;
$custom-dark: #000000;
JSON
{
  "hex": "#9f8215",
  "rgb": {
    "r": 159,
    "g": 130,
    "b": 21
  },
  "hsl": {
    "h": 47.391,
    "s": 76.667,
    "l": 35.294
  },
  "oklch": {
    "l": 0.61653,
    "c": 0.12052,
    "h": 92.2
  },
  "luminance": 0.2339
}

Semantic roles & 50–950 ramp

primary
#9F8215
secondary
#4863C8
accent
#5DF335
background
#FCFAF5
surface
#F8F4EA
border
#D1CEC6
text
#130F05
muted
#827F79

Preview Lab

Preview with #9F8215

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

Preview Lab → · Contrast checker → · Palette generator →

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