#8A8620#8A8620

#8A8620 is a mid, moderate yellow. Relative luminance 0.226; OKLCH L 60.5% C 0.118 H 107.1°. Best body text is #000000 at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#8A8620
RGBrgb(138, 134, 32)
HSLhsl(58, 62%, 33%)
HSVhsv(58, 77%, 54%)
CMYKcmyk(0%, 2.9%, 76.8%, 45.9%)
CIE-LABlab(54.61, -10.65, 51.56)
CIE-LCHlch(54.61, 52.65, 101.67°)
OKLaboklab(60.51% -0.0349 0.1131)
OKLCHoklch(60.51% 0.118 107.1)
XYZxyz(19.2678, 22.5584, 4.7055)
Luminance0.2256 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8620 #20248A
analogous
#8A5120 #8A8620 #598A20
triadic
#8A8620 #208A86 #86208A
tetradic
#8A8620 #208A51 #20248A #8A2059
square
#8A8620 #208A51 #20248A #8A2059
split-complementary
#8A8620 #20598A #51208A
monochromatic
#272609 #585614 #8A8620 #BCB62C #D6D14E

Accessibility & contrast

On white

3.81
#8A8620 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.51
#8A8620 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8620
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8620#FFFFFF#000000##000000
##8A86201.003.815.515.51
#FFFFFF3.811.0021.0021.00
#0000005.5121.001.001.00
##0000005.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#928109
Deuteranopia (green-blind)
#948428
Tritanopia (blue-blind)
#947D73
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #8a8620;
/* rgb */ color: rgb(138, 134, 32);
/* oklch */ color: oklch(60.5% 0.118 107.1);
Tailwind
colors: {
  custom: {
    50: '#afa964',
    500: '#8a8620',
    950: '#000000',
  },
}
SCSS
$custom: #8a8620;
$custom-light: #afa964;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8620",
  "rgb": {
    "r": 138,
    "g": 134,
    "b": 32
  },
  "hsl": {
    "h": 57.736,
    "s": 62.353,
    "l": 33.333
  },
  "oklch": {
    "l": 0.60509,
    "c": 0.11837,
    "h": 107.1
  },
  "luminance": 0.22558
}

Semantic roles & 50–950 ramp

primary
#8A8620
secondary
#4D51B9
accent
#49E542
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8A8620

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

Preview Lab → · Contrast checker → · Palette generator →

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