#8A8222#8A8222

#8A8222 is a mid, moderate yellow. Relative luminance 0.215; OKLCH L 59.6% C 0.113 H 104.5°. Best body text is #000000 at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#8A8222
RGBrgb(138, 130, 34)
HSLhsl(55, 60%, 34%)
HSVhsv(55, 75%, 54%)
CMYKcmyk(0%, 5.8%, 75.4%, 45.9%)
CIE-LABlab(53.48, -8.38, 49.77)
CIE-LCHlch(53.48, 50.47, 99.56°)
OKLaboklab(59.61% -0.0283 0.1097)
OKLCHoklch(59.61% 0.113 104.5)
XYZxyz(18.7534, 21.4848, 4.6722)
Luminance0.2148 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8222 #222A8A
analogous
#8A4E22 #8A8222 #5E8A22
triadic
#8A8222 #228A82 #82228A
tetradic
#8A8222 #228A4E #222A8A #8A225E
square
#8A8222 #228A4E #222A8A #8A225E
split-complementary
#8A8222 #225E8A #4E228A
monochromatic
#28250A #595416 #8A8222 #BBB02E #D4CA52

Accessibility & contrast

On white

3.96
#8A8222 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.30
#8A8222 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8222
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8222#FFFFFF#000000##000000
##8A82221.003.965.305.30
#FFFFFF3.961.0021.0021.00
#0000005.3021.001.001.00
##0000005.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7D10
Deuteranopia (green-blind)
#918229
Tritanopia (blue-blind)
#95796F
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #8a8222;
/* rgb */ color: rgb(138, 130, 34);
/* oklch */ color: oklch(59.6% 0.113 104.5);
Tailwind
colors: {
  custom: {
    50: '#afa665',
    500: '#8a8222',
    950: '#000000',
  },
}
SCSS
$custom: #8a8222;
$custom-light: #afa665;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8222",
  "rgb": {
    "r": 138,
    "g": 130,
    "b": 34
  },
  "hsl": {
    "h": 55.385,
    "s": 60.465,
    "l": 33.725
  },
  "oklch": {
    "l": 0.59606,
    "c": 0.11328,
    "h": 104.5
  },
  "luminance": 0.21484
}

Semantic roles & 50–950 ramp

primary
#8A8222
secondary
#5058B8
accent
#50E444
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8A8222

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

Preview Lab → · Contrast checker → · Palette generator →

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