#8A8722#8A8722

#8A8722 is a mid, moderate yellow. Relative luminance 0.228; OKLCH L 60.8% C 0.118 H 107.7°. Best body text is #000000 at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#8A8722
RGBrgb(138, 135, 34)
HSLhsl(58, 60%, 34%)
HSVhsv(58, 75%, 54%)
CMYKcmyk(0%, 2.2%, 75.4%, 45.9%)
CIE-LABlab(54.91, -11.10, 51.13)
CIE-LCHlch(54.91, 52.32, 102.25°)
OKLaboklab(60.75% -0.036 0.1126)
OKLCHoklch(60.75% 0.118 107.7)
XYZxyz(19.4347, 22.8474, 4.8993)
Luminance0.2285 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8722 #22258A
analogous
#8A5322 #8A8722 #598A22
triadic
#8A8722 #228A87 #87228A
tetradic
#8A8722 #228A53 #22258A #8A2259
square
#8A8722 #228A53 #22258A #8A2259
split-complementary
#8A8722 #22598A #53228A
monochromatic
#28270A #595716 #8A8722 #BBB72E #D4D152

Accessibility & contrast

On white

3.77
#8A8722 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.57
#8A8722 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8722
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8722#FFFFFF#000000##000000
##8A87221.003.775.575.57
#FFFFFF3.771.0021.0021.00
#0000005.5721.001.001.00
##0000005.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#93810D
Deuteranopia (green-blind)
#94852A
Tritanopia (blue-blind)
#947E74
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #8a8722;
/* rgb */ color: rgb(138, 135, 34);
/* oklch */ color: oklch(60.8% 0.118 107.7);
Tailwind
colors: {
  custom: {
    50: '#afa965',
    500: '#8a8722',
    950: '#000000',
  },
}
SCSS
$custom: #8a8722;
$custom-light: #afa965;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8722",
  "rgb": {
    "r": 138,
    "g": 135,
    "b": 34
  },
  "hsl": {
    "h": 58.269,
    "s": 60.465,
    "l": 33.725
  },
  "oklch": {
    "l": 0.60753,
    "c": 0.11817,
    "h": 107.7
  },
  "luminance": 0.22847
}

Semantic roles & 50–950 ramp

primary
#8A8722
secondary
#5053B8
accent
#49E444
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8A8722

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

Preview Lab → · Contrast checker → · Palette generator →

#8A8722 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva