#9F8522#9F8522

#9F8522 is a light, moderate yellow. Relative luminance 0.243; OKLCH L 62.4% C 0.116 H 93.4°. Best body text is #000000 at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#9F8522
RGBrgb(159, 133, 34)
HSLhsl(48, 65%, 38%)
HSVhsv(48, 79%, 62%)
CMYKcmyk(0%, 16.4%, 78.6%, 37.6%)
CIE-LABlab(56.35, -0.39, 53.19)
CIE-LCHlch(56.35, 53.19, 90.42°)
OKLaboklab(62.37% -0.0069 0.116)
OKLCHoklch(62.37% 0.116 93.4)
XYZxyz(22.9756, 24.2628, 4.9861)
Luminance0.2426 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F8522 #223C9F
analogous
#9F4622 #9F8522 #7A9F22
triadic
#9F8522 #229F85 #85229F
tetradic
#9F8522 #229F46 #223C9F #9F227A
square
#9F8522 #229F46 #223C9F #9F227A
split-complementary
#9F8522 #227A9F #46229F
monochromatic
#3A310C #6D5B17 #9F8522 #D1AF2D #DDC35F

Accessibility & contrast

On white

3.59
#9F8522 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.85
#9F8522 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F8522
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F8522#FFFFFF#000000##000000
##9F85221.003.595.855.85
#FFFFFF3.591.0021.0021.00
#0000005.8521.001.001.00
##0000005.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#94830D
Deuteranopia (green-blind)
#9B8A28
Tritanopia (blue-blind)
#AC7A72
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #9f8522;
/* rgb */ color: rgb(159, 133, 34);
/* oklch */ color: oklch(62.4% 0.116 93.4);
Tailwind
colors: {
  custom: {
    50: '#bfa866',
    500: '#9f8522',
    950: '#000000',
  },
}
SCSS
$custom: #9f8522;
$custom-light: #bfa866;
$custom-dark: #000000;
JSON
{
  "hex": "#9f8522",
  "rgb": {
    "r": 159,
    "g": 133,
    "b": 34
  },
  "hsl": {
    "h": 47.52,
    "s": 64.767,
    "l": 37.843
  },
  "oklch": {
    "l": 0.62365,
    "c": 0.11624,
    "h": 93.4
  },
  "luminance": 0.24261
}

Semantic roles & 50–950 ramp

primary
#9F8522
secondary
#5B71C1
accent
#63E840
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#130F06
muted
#827F7A

Preview Lab

Preview with #9F8522

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

Preview Lab → · Contrast checker → · Palette generator →

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