#8A8229#8A8229

#8A8229 is a mid, moderate yellow. Relative luminance 0.215; OKLCH L 59.7% C 0.109 H 104.2°. Best body text is #000000 at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#8A8229
RGBrgb(138, 130, 41)
HSLhsl(55, 54%, 35%)
HSVhsv(55, 70%, 54%)
CMYKcmyk(0%, 5.8%, 70.3%, 45.9%)
CIE-LABlab(53.52, -8.01, 47.03)
CIE-LCHlch(53.52, 47.71, 99.67°)
OKLaboklab(59.66% -0.0265 0.1052)
OKLCHoklch(59.66% 0.109 104.2)
XYZxyz(18.8649, 21.5294, 5.2593)
Luminance0.2153 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8229 #29318A
analogous
#8A5229 #8A8229 #618A29
triadic
#8A8229 #298A82 #82298A
tetradic
#8A8229 #298A52 #29318A #8A2961
square
#8A8229 #298A52 #29318A #8A2961
split-complementary
#8A8229 #29618A #52298A
monochromatic
#2C290D #5B561B #8A8229 #B9AE37 #CFC65E

Accessibility & contrast

On white

3.96
#8A8229 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.31
#8A8229 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8229
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8229#FFFFFF#000000##000000
##8A82291.003.965.315.31
#FFFFFF3.961.0021.0021.00
#0000005.3121.001.001.00
##0000005.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7D1C
Deuteranopia (green-blind)
#90822F
Tritanopia (blue-blind)
#947970
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #8a8229;
/* rgb */ color: rgb(138, 130, 41);
/* oklch */ color: oklch(59.7% 0.109 104.2);
Tailwind
colors: {
  custom: {
    50: '#afa668',
    500: '#8a8229',
    950: '#000000',
  },
}
SCSS
$custom: #8a8229;
$custom-light: #afa668;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8229",
  "rgb": {
    "r": 138,
    "g": 130,
    "b": 41
  },
  "hsl": {
    "h": 55.052,
    "s": 54.19,
    "l": 35.098
  },
  "oklch": {
    "l": 0.5966,
    "c": 0.10852,
    "h": 104.2
  },
  "luminance": 0.21529
}

Semantic roles & 50–950 ramp

primary
#8A8229
secondary
#5A62B5
accent
#56DE4A
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8A8229

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

Preview Lab → · Contrast checker → · Palette generator →

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