#8A8022#8A8022

#8A8022 is a mid, moderate yellow. Relative luminance 0.210; OKLCH L 59.2% C 0.111 H 103.1°. Best body text is #000000 at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#8A8022
RGBrgb(138, 128, 34)
HSLhsl(54, 60%, 34%)
HSVhsv(54, 75%, 54%)
CMYKcmyk(0%, 7.2%, 75.4%, 45.9%)
CIE-LABlab(52.90, -7.28, 49.22)
CIE-LCHlch(52.90, 49.76, 98.42°)
OKLaboklab(59.15% -0.0252 0.1085)
OKLCHoklch(59.15% 0.111 103.1)
XYZxyz(18.4900, 20.9579, 4.5844)
Luminance0.2096 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8022 #222C8A
analogous
#8A4C22 #8A8022 #608A22
triadic
#8A8022 #228A80 #80228A
tetradic
#8A8022 #228A4C #222C8A #8A2260
square
#8A8022 #228A4C #222C8A #8A2260
split-complementary
#8A8022 #22608A #4C228A
monochromatic
#28250A #595216 #8A8022 #BBAE2E #D4C852

Accessibility & contrast

On white

4.05
#8A8022 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.19
#8A8022 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8022
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8022#FFFFFF#000000##000000
##8A80221.004.055.195.19
#FFFFFF4.051.0021.0021.00
#0000005.1921.001.001.00
##0000005.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7C11
Deuteranopia (green-blind)
#8F8029
Tritanopia (blue-blind)
#95776E
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #8a8022;
/* rgb */ color: rgb(138, 128, 34);
/* oklch */ color: oklch(59.2% 0.111 103.1);
Tailwind
colors: {
  custom: {
    50: '#afa464',
    500: '#8a8022',
    950: '#000000',
  },
}
SCSS
$custom: #8a8022;
$custom-light: #afa464;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8022",
  "rgb": {
    "r": 138,
    "g": 128,
    "b": 34
  },
  "hsl": {
    "h": 54.231,
    "s": 60.465,
    "l": 33.725
  },
  "oklch": {
    "l": 0.59151,
    "c": 0.11142,
    "h": 103.1
  },
  "luminance": 0.20957
}

Semantic roles & 50–950 ramp

primary
#8A8022
secondary
#505AB8
accent
#54E444
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8A8022

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

Preview Lab → · Contrast checker → · Palette generator →

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