#8A8621#8A8621

#8A8621 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#8A8621
RGBrgb(138, 134, 33)
HSLhsl(58, 61%, 34%)
HSVhsv(58, 76%, 54%)
CMYKcmyk(0%, 2.9%, 76.1%, 45.9%)
CIE-LABlab(54.62, -10.61, 51.21)
CIE-LCHlch(54.62, 52.30, 101.70°)
OKLaboklab(60.52% -0.0347 0.1126)
OKLCHoklch(60.52% 0.118 107.1)
XYZxyz(19.2816, 22.5639, 4.7782)
Luminance0.2256 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8621 #21258A
analogous
#8A5121 #8A8621 #598A21
triadic
#8A8621 #218A86 #86218A
tetradic
#8A8621 #218A51 #21258A #8A2159
square
#8A8621 #218A51 #21258A #8A2159
split-complementary
#8A8621 #21598A #51218A
monochromatic
#272609 #595615 #8A8621 #BBB62D #D5D050

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A8621#FFFFFF#000000##000000
##8A86211.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)
#92810C
Deuteranopia (green-blind)
#948429
Tritanopia (blue-blind)
#947D73
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #8a8621;
/* rgb */ color: rgb(138, 134, 33);
/* oklch */ color: oklch(60.5% 0.118 107.1);
Tailwind
colors: {
  custom: {
    50: '#afa965',
    500: '#8a8621',
    950: '#000000',
  },
}
SCSS
$custom: #8a8621;
$custom-light: #afa965;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8621",
  "rgb": {
    "r": 138,
    "g": 134,
    "b": 33
  },
  "hsl": {
    "h": 57.714,
    "s": 61.404,
    "l": 33.529
  },
  "oklch": {
    "l": 0.60516,
    "c": 0.11778,
    "h": 107.1
  },
  "luminance": 0.22563
}

Semantic roles & 50–950 ramp

primary
#8A8621
secondary
#4E52B9
accent
#49E543
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8A8621

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

Preview Lab → · Contrast checker → · Palette generator →

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