#9F9021#9F9021

#9F9021 is a light, vivid yellow. Relative luminance 0.274; OKLCH L 64.8% C 0.125 H 101.2°. Best body text is #000000 at 6.49:1 contrast (WCAG AA passes).

Color values

HEX#9F9021
RGBrgb(159, 144, 33)
HSLhsl(53, 66%, 38%)
HSVhsv(53, 79%, 62%)
CMYKcmyk(0%, 9.4%, 79.2%, 37.6%)
CIE-LABlab(59.37, -6.45, 56.29)
CIE-LCHlch(59.37, 56.65, 96.54°)
OKLaboklab(64.75% -0.0241 0.1225)
OKLCHoklch(64.75% 0.125 101.2)
XYZxyz(24.5470, 27.4284, 5.4398)
Luminance0.2743 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F9021 #21309F
analogous
#9F5121 #9F9021 #6F9F21
triadic
#9F9021 #219F90 #90219F
tetradic
#9F9021 #219F51 #21309F #9F216F
square
#9F9021 #219F51 #21309F #9F216F
split-complementary
#9F9021 #216F9F #51219F
monochromatic
#3A340C #6C6216 #9F9021 #D2BE2C #DDCE5D

Accessibility & contrast

On white

3.24
#9F9021 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.49
#9F9021 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F9021
6.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F9021#FFFFFF#000000##000000
##9F90211.003.246.496.49
#FFFFFF3.241.0021.0021.00
#0000006.4921.001.001.00
##0000006.4921.001.001.00

Color blindness preview

Protanopia (red-blind)
#9E8C04
Deuteranopia (green-blind)
#A39229
Tritanopia (blue-blind)
#AC857B
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #9f9021;
/* rgb */ color: rgb(159, 144, 33);
/* oklch */ color: oklch(64.8% 0.125 101.2);
Tailwind
colors: {
  custom: {
    50: '#bfb066',
    500: '#9f9021',
    950: '#000000',
  },
}
SCSS
$custom: #9f9021;
$custom-light: #bfb066;
$custom-dark: #000000;
JSON
{
  "hex": "#9f9021",
  "rgb": {
    "r": 159,
    "g": 144,
    "b": 33
  },
  "hsl": {
    "h": 52.857,
    "s": 65.625,
    "l": 37.647
  },
  "oklch": {
    "l": 0.64754,
    "c": 0.12482,
    "h": 101.2
  },
  "luminance": 0.27427
}

Semantic roles & 50–950 ramp

primary
#9F9021
secondary
#5A66C2
accent
#53E93F
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131006
muted
#827F7A

Preview Lab

Preview with #9F9021

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

Preview Lab → · Contrast checker → · Palette generator →

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