#9F8221#9F8221

#9F8221 is a mid, moderate yellow. Relative luminance 0.234; OKLCH L 61.7% C 0.115 H 91.2°. Best body text is #000000 at 5.69:1 contrast (WCAG AA passes).

Color values

HEX#9F8221
RGBrgb(159, 130, 33)
HSLhsl(46, 66%, 38%)
HSVhsv(46, 79%, 62%)
CMYKcmyk(0%, 18.2%, 79.2%, 37.6%)
CIE-LABlab(55.53, 1.24, 52.79)
CIE-LCHlch(55.53, 52.81, 88.65°)
OKLaboklab(61.72% -0.0023 0.115)
OKLCHoklch(61.72% 0.115 91.2)
XYZxyz(22.5565, 23.4474, 4.7763)
Luminance0.2345 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F8221 #213E9F
analogous
#9F4321 #9F8221 #7D9F21
triadic
#9F8221 #219F82 #82219F
tetradic
#9F8221 #219F43 #213E9F #9F217D
square
#9F8221 #219F43 #213E9F #9F217D
split-complementary
#9F8221 #217D9F #43219F
monochromatic
#3A2F0C #6C5916 #9F8221 #D2AB2C #DDC05D

Accessibility & contrast

On white

3.69
#9F8221 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.69
#9F8221 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F8221
5.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F8221#FFFFFF#000000##000000
##9F82211.003.695.695.69
#FFFFFF3.691.0021.0021.00
#0000005.6921.001.001.00
##0000005.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#91800D
Deuteranopia (green-blind)
#988827
Tritanopia (blue-blind)
#AD7770
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #9f8221;
/* rgb */ color: rgb(159, 130, 33);
/* oklch */ color: oklch(61.7% 0.115 91.2);
Tailwind
colors: {
  custom: {
    50: '#c0a565',
    500: '#9f8221',
    950: '#000000',
  },
}
SCSS
$custom: #9f8221;
$custom-light: #c0a565;
$custom-dark: #000000;
JSON
{
  "hex": "#9f8221",
  "rgb": {
    "r": 159,
    "g": 130,
    "b": 33
  },
  "hsl": {
    "h": 46.19,
    "s": 65.625,
    "l": 37.647
  },
  "oklch": {
    "l": 0.61716,
    "c": 0.11499,
    "h": 91.2
  },
  "luminance": 0.23446
}

Semantic roles & 50–950 ramp

primary
#9F8221
secondary
#5A72C2
accent
#66E93F
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#130F06
muted
#827F7A

Preview Lab

Preview with #9F8221

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

Preview Lab → · Contrast checker → · Palette generator →

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