#9F9321#9F9321

#9F9321 is a light, vivid yellow. Relative luminance 0.283; OKLCH L 65.4% C 0.127 H 103.0°. Best body text is #000000 at 6.67:1 contrast (WCAG AA passes).

Color values

HEX#9F9321
RGBrgb(159, 147, 33)
HSLhsl(54, 66%, 38%)
HSVhsv(54, 79%, 62%)
CMYKcmyk(0%, 7.5%, 79.2%, 37.6%)
CIE-LABlab(60.20, -8.07, 57.04)
CIE-LCHlch(60.20, 57.61, 98.05°)
OKLaboklab(65.42% -0.0287 0.1241)
OKLCHoklch(65.42% 0.127 103)
XYZxyz(25.0075, 28.3493, 5.5933)
Luminance0.2835 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F9321 #212D9F
analogous
#9F5421 #9F9321 #6C9F21
triadic
#9F9321 #219F93 #93219F
tetradic
#9F9321 #219F54 #212D9F #9F216C
square
#9F9321 #219F54 #212D9F #9F216C
split-complementary
#9F9321 #216C9F #54219F
monochromatic
#3A350C #6C6416 #9F9321 #D2C22C #DDD15D

Accessibility & contrast

On white

3.15
#9F9321 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.67
#9F9321 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F9321
6.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F9321#FFFFFF#000000##000000
##9F93211.003.156.676.67
#FFFFFF3.151.0021.0021.00
#0000006.6721.001.001.00
##0000006.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#A18E02
Deuteranopia (green-blind)
#A5942A
Tritanopia (blue-blind)
#AC887E
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #9f9321;
/* rgb */ color: rgb(159, 147, 33);
/* oklch */ color: oklch(65.4% 0.127 103.0);
Tailwind
colors: {
  custom: {
    50: '#bfb267',
    500: '#9f9321',
    950: '#000000',
  },
}
SCSS
$custom: #9f9321;
$custom-light: #bfb267;
$custom-dark: #000000;
JSON
{
  "hex": "#9f9321",
  "rgb": {
    "r": 159,
    "g": 147,
    "b": 33
  },
  "hsl": {
    "h": 54.286,
    "s": 65.625,
    "l": 37.647
  },
  "oklch": {
    "l": 0.65417,
    "c": 0.12735,
    "h": 103
  },
  "luminance": 0.28348
}

Semantic roles & 50–950 ramp

primary
#9F9321
secondary
#5A64C2
accent
#4FE93F
background
#FCFAF6
surface
#F8F5EB
border
#D1CFC6
text
#131006
muted
#827F7A

Preview Lab

Preview with #9F9321

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

Preview Lab → · Contrast checker → · Palette generator →

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