#8A8422#8A8422

#8A8422 is a mid, moderate yellow. Relative luminance 0.220; OKLCH L 60.1% C 0.115 H 105.8°. Best body text is #000000 at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#8A8422
RGBrgb(138, 132, 34)
HSLhsl(57, 60%, 34%)
HSVhsv(57, 75%, 54%)
CMYKcmyk(0%, 4.3%, 75.4%, 45.9%)
CIE-LABlab(54.05, -9.47, 50.31)
CIE-LCHlch(54.05, 51.20, 100.66°)
OKLaboklab(60.06% -0.0314 0.1108)
OKLCHoklch(60.06% 0.115 105.8)
XYZxyz(19.0220, 22.0220, 4.7617)
Luminance0.2202 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8422 #22288A
analogous
#8A5022 #8A8422 #5C8A22
triadic
#8A8422 #228A84 #84228A
tetradic
#8A8422 #228A50 #22288A #8A225C
square
#8A8422 #228A50 #22288A #8A225C
split-complementary
#8A8422 #225C8A #50228A
monochromatic
#28260A #595516 #8A8422 #BBB32E #D4CD52

Accessibility & contrast

On white

3.89
#8A8422 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.40
#8A8422 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8422
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8422#FFFFFF#000000##000000
##8A84221.003.895.405.40
#FFFFFF3.891.0021.0021.00
#0000005.4021.001.001.00
##0000005.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#907F0F
Deuteranopia (green-blind)
#928329
Tritanopia (blue-blind)
#957B71
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #8a8422;
/* rgb */ color: rgb(138, 132, 34);
/* oklch */ color: oklch(60.1% 0.115 105.8);
Tailwind
colors: {
  custom: {
    50: '#afa765',
    500: '#8a8422',
    950: '#000000',
  },
}
SCSS
$custom: #8a8422;
$custom-light: #afa765;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8422",
  "rgb": {
    "r": 138,
    "g": 132,
    "b": 34
  },
  "hsl": {
    "h": 56.538,
    "s": 60.465,
    "l": 33.725
  },
  "oklch": {
    "l": 0.60063,
    "c": 0.1152,
    "h": 105.8
  },
  "luminance": 0.22021
}

Semantic roles & 50–950 ramp

primary
#8A8422
secondary
#5056B8
accent
#4DE444
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8A8422

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

Preview Lab → · Contrast checker → · Palette generator →

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