#9E8522#9E8522

#9E8522 is a light, moderate yellow. Relative luminance 0.242; OKLCH L 62.3% C 0.116 H 94.0°. Best body text is #000000 at 5.83:1 contrast (WCAG AA passes).

Color values

HEX#9E8522
RGBrgb(158, 133, 34)
HSLhsl(48, 65%, 38%)
HSVhsv(48, 78%, 62%)
CMYKcmyk(0%, 15.8%, 78.5%, 38%)
CIE-LABlab(56.25, -0.84, 53.06)
CIE-LCHlch(56.25, 53.06, 90.91°)
OKLaboklab(62.26% -0.0081 0.1158)
OKLCHoklch(62.26% 0.116 94)
XYZxyz(22.7781, 24.1610, 4.9768)
Luminance0.2416 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E8522 #223B9E
analogous
#9E4722 #9E8522 #799E22
triadic
#9E8522 #229E85 #85229E
tetradic
#9E8522 #229E47 #223B9E #9E2279
square
#9E8522 #229E47 #223B9E #9E2279
split-complementary
#9E8522 #22799E #47229E
monochromatic
#39300C #6C5B17 #9E8522 #D0AF2D #DCC35E

Accessibility & contrast

On white

3.60
#9E8522 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.83
#9E8522 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9E8522
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E8522#FFFFFF#000000##000000
##9E85221.003.605.835.83
#FFFFFF3.601.0021.0021.00
#0000005.8321.001.001.00
##0000005.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#94830E
Deuteranopia (green-blind)
#9A8A28
Tritanopia (blue-blind)
#AB7A72
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #9e8522;
/* rgb */ color: rgb(158, 133, 34);
/* oklch */ color: oklch(62.3% 0.116 94.0);
Tailwind
colors: {
  custom: {
    50: '#bfa865',
    500: '#9e8522',
    950: '#000000',
  },
}
SCSS
$custom: #9e8522;
$custom-light: #bfa865;
$custom-dark: #000000;
JSON
{
  "hex": "#9e8522",
  "rgb": {
    "r": 158,
    "g": 133,
    "b": 34
  },
  "hsl": {
    "h": 47.903,
    "s": 64.583,
    "l": 37.647
  },
  "oklch": {
    "l": 0.62261,
    "c": 0.1161,
    "h": 94
  },
  "luminance": 0.2416
}

Semantic roles & 50–950 ramp

primary
#9E8522
secondary
#5B6FC1
accent
#62E840
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#130F06
muted
#827F7A

Preview Lab

Preview with #9E8522

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

Preview Lab → · Contrast checker → · Palette generator →

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