#9E8722#9E8722

#9E8722 is a light, moderate yellow. Relative luminance 0.247; OKLCH L 62.7% C 0.117 H 95.5°. Best body text is #000000 at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#9E8722
RGBrgb(158, 135, 34)
HSLhsl(49, 65%, 38%)
HSVhsv(49, 78%, 62%)
CMYKcmyk(0%, 14.6%, 78.5%, 38%)
CIE-LABlab(56.80, -1.95, 53.56)
CIE-LCHlch(56.80, 53.60, 92.08°)
OKLaboklab(62.69% -0.0113 0.1169)
OKLCHoklch(62.69% 0.117 95.5)
XYZxyz(23.0545, 24.7138, 5.0690)
Luminance0.2471 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E8722 #22399E
analogous
#9E4922 #9E8722 #779E22
triadic
#9E8722 #229E87 #87229E
tetradic
#9E8722 #229E49 #22399E #9E2277
square
#9E8722 #229E49 #22399E #9E2277
split-complementary
#9E8722 #22779E #49229E
monochromatic
#39310C #6C5C17 #9E8722 #D0B22D #DCC55E

Accessibility & contrast

On white

3.53
#9E8722 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.94
#9E8722 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9E8722
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E8722#FFFFFF#000000##000000
##9E87221.003.535.945.94
#FFFFFF3.531.0021.0021.00
#0000005.9421.001.001.00
##0000005.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#96840C
Deuteranopia (green-blind)
#9C8B29
Tritanopia (blue-blind)
#AB7C74
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #9e8722;
/* rgb */ color: rgb(158, 135, 34);
/* oklch */ color: oklch(62.7% 0.117 95.5);
Tailwind
colors: {
  custom: {
    50: '#bfa966',
    500: '#9e8722',
    950: '#000000',
  },
}
SCSS
$custom: #9e8722;
$custom-light: #bfa966;
$custom-dark: #000000;
JSON
{
  "hex": "#9e8722",
  "rgb": {
    "r": 158,
    "g": 135,
    "b": 34
  },
  "hsl": {
    "h": 48.871,
    "s": 64.583,
    "l": 37.647
  },
  "oklch": {
    "l": 0.62694,
    "c": 0.11742,
    "h": 95.5
  },
  "luminance": 0.24713
}

Semantic roles & 50–950 ramp

primary
#9E8722
secondary
#5B6EC1
accent
#5FE840
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#130F06
muted
#827F7A

Preview Lab

Preview with #9E8722

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

Preview Lab → · Contrast checker → · Palette generator →

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