#8A8622#8A8622

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

Color values

HEX#8A8622
RGBrgb(138, 134, 34)
HSLhsl(58, 60%, 34%)
HSVhsv(58, 75%, 54%)
CMYKcmyk(0%, 2.9%, 75.4%, 45.9%)
CIE-LABlab(54.63, -10.56, 50.86)
CIE-LCHlch(54.63, 51.94, 101.73°)
OKLaboklab(60.52% -0.0344 0.112)
OKLCHoklch(60.52% 0.117 107.1)
XYZxyz(19.2958, 22.5696, 4.8530)
Luminance0.2257 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8622 #22268A
analogous
#8A5222 #8A8622 #5A8A22
triadic
#8A8622 #228A86 #86228A
tetradic
#8A8622 #228A52 #22268A #8A225A
square
#8A8622 #228A52 #22268A #8A225A
split-complementary
#8A8622 #225A8A #52228A
monochromatic
#28270A #595616 #8A8622 #BBB62E #D4CF52

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A8622#FFFFFF#000000##000000
##8A86221.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)
#92810E
Deuteranopia (green-blind)
#94842A
Tritanopia (blue-blind)
#947D73
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #8a8622;
/* rgb */ color: rgb(138, 134, 34);
/* oklch */ color: oklch(60.5% 0.117 107.1);
Tailwind
colors: {
  custom: {
    50: '#afa965',
    500: '#8a8622',
    950: '#000000',
  },
}
SCSS
$custom: #8a8622;
$custom-light: #afa965;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8622",
  "rgb": {
    "r": 138,
    "g": 134,
    "b": 34
  },
  "hsl": {
    "h": 57.692,
    "s": 60.465,
    "l": 33.725
  },
  "oklch": {
    "l": 0.60522,
    "c": 0.11718,
    "h": 107.1
  },
  "luminance": 0.22569
}

Semantic roles & 50–950 ramp

primary
#8A8622
secondary
#5054B8
accent
#4AE444
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8A8622

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

Preview Lab → · Contrast checker → · Palette generator →

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