#8A8522#8A8522

#8A8522 is a mid, moderate yellow. Relative luminance 0.223; OKLCH L 60.3% C 0.116 H 106.5°. Best body text is #000000 at 5.46:1 contrast (WCAG AA passes).

Color values

HEX#8A8522
RGBrgb(138, 133, 34)
HSLhsl(57, 60%, 34%)
HSVhsv(57, 75%, 54%)
CMYKcmyk(0%, 3.6%, 75.4%, 45.9%)
CIE-LABlab(54.34, -10.02, 50.59)
CIE-LCHlch(54.34, 51.57, 101.20°)
OKLaboklab(60.29% -0.0329 0.1114)
OKLCHoklch(60.29% 0.116 106.5)
XYZxyz(19.1583, 22.2945, 4.8072)
Luminance0.2229 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8522 #22278A
analogous
#8A5122 #8A8522 #5B8A22
triadic
#8A8522 #228A85 #85228A
tetradic
#8A8522 #228A51 #22278A #8A225B
square
#8A8522 #228A51 #22278A #8A225B
split-complementary
#8A8522 #225B8A #51228A
monochromatic
#28260A #595616 #8A8522 #BBB42E #D4CE52

Accessibility & contrast

On white

3.85
#8A8522 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.46
#8A8522 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8522
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8522#FFFFFF#000000##000000
##8A85221.003.855.465.46
#FFFFFF3.851.0021.0021.00
#0000005.4621.001.001.00
##0000005.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#91800E
Deuteranopia (green-blind)
#938429
Tritanopia (blue-blind)
#947C72
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #8a8522;
/* rgb */ color: rgb(138, 133, 34);
/* oklch */ color: oklch(60.3% 0.116 106.5);
Tailwind
colors: {
  custom: {
    50: '#afa865',
    500: '#8a8522',
    950: '#000000',
  },
}
SCSS
$custom: #8a8522;
$custom-light: #afa865;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8522",
  "rgb": {
    "r": 138,
    "g": 133,
    "b": 34
  },
  "hsl": {
    "h": 57.115,
    "s": 60.465,
    "l": 33.725
  },
  "oklch": {
    "l": 0.60293,
    "c": 0.11618,
    "h": 106.5
  },
  "luminance": 0.22294
}

Semantic roles & 50–950 ramp

primary
#8A8522
secondary
#5055B8
accent
#4CE444
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8A8522

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

Preview Lab → · Contrast checker → · Palette generator →

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