#9F8121#9F8121

#9F8121 is a mid, moderate yellow. Relative luminance 0.232; OKLCH L 61.5% C 0.114 H 90.4°. Best body text is #000000 at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#9F8121
RGBrgb(159, 129, 33)
HSLhsl(46, 66%, 38%)
HSVhsv(46, 79%, 62%)
CMYKcmyk(0%, 18.9%, 79.2%, 37.6%)
CIE-LABlab(55.26, 1.80, 52.54)
CIE-LCHlch(55.26, 52.58, 88.04°)
OKLaboklab(61.5% -0.0007 0.1144)
OKLCHoklch(61.5% 0.114 90.4)
XYZxyz(22.4242, 23.1827, 4.7322)
Luminance0.2318 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F8121 #213F9F
analogous
#9F4221 #9F8121 #7E9F21
triadic
#9F8121 #219F81 #81219F
tetradic
#9F8121 #219F42 #213F9F #9F217E
square
#9F8121 #219F42 #213F9F #9F217E
split-complementary
#9F8121 #217E9F #42219F
monochromatic
#3A2F0C #6C5816 #9F8121 #D2AA2C #DDBF5D

Accessibility & contrast

On white

3.73
#9F8121 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.64
#9F8121 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F8121
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F8121#FFFFFF#000000##000000
##9F81211.003.735.645.64
#FFFFFF3.731.0021.0021.00
#0000005.6421.001.001.00
##0000005.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#907F0D
Deuteranopia (green-blind)
#988827
Tritanopia (blue-blind)
#AD756F
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #9f8121;
/* rgb */ color: rgb(159, 129, 33);
/* oklch */ color: oklch(61.5% 0.114 90.4);
Tailwind
colors: {
  custom: {
    50: '#c0a565',
    500: '#9f8121',
    950: '#000000',
  },
}
SCSS
$custom: #9f8121;
$custom-light: #c0a565;
$custom-dark: #000000;
JSON
{
  "hex": "#9f8121",
  "rgb": {
    "r": 159,
    "g": 129,
    "b": 33
  },
  "hsl": {
    "h": 45.714,
    "s": 65.625,
    "l": 37.647
  },
  "oklch": {
    "l": 0.61503,
    "c": 0.11444,
    "h": 90.4
  },
  "luminance": 0.23181
}

Semantic roles & 50–950 ramp

primary
#9F8121
secondary
#5A73C2
accent
#68E93F
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#130F06
muted
#827F7A

Preview Lab

Preview with #9F8121

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

Preview Lab → · Contrast checker → · Palette generator →

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