#8A821E#8A821E

#8A821E is a mid, moderate yellow. Relative luminance 0.215; OKLCH L 59.6% C 0.116 H 104.6°. Best body text is #000000 at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#8A821E
RGBrgb(138, 130, 30)
HSLhsl(56, 64%, 33%)
HSVhsv(56, 78%, 54%)
CMYKcmyk(0%, 5.8%, 78.3%, 45.9%)
CIE-LABlab(53.45, -8.56, 51.19)
CIE-LCHlch(53.45, 51.90, 99.50°)
OKLaboklab(59.58% -0.0292 0.1119)
OKLCHoklch(59.58% 0.116 104.6)
XYZxyz(18.6990, 21.4630, 4.3859)
Luminance0.2146 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A821E #1E268A
analogous
#8A4C1E #8A821E #5C8A1E
triadic
#8A821E #1E8A82 #821E8A
tetradic
#8A821E #1E8A4C #1E268A #8A1E5C
square
#8A821E #1E8A4C #1E268A #8A1E5C
split-complementary
#8A821E #1E5C8A #4C1E8A
monochromatic
#252308 #585313 #8A821E #BCB129 #D8CD4B

Accessibility & contrast

On white

3.97
#8A821E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.29
#8A821E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A821E
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A821E#FFFFFF#000000##000000
##8A821E1.003.975.295.29
#FFFFFF3.971.0021.0021.00
#0000005.2921.001.001.00
##0000005.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7D06
Deuteranopia (green-blind)
#918226
Tritanopia (blue-blind)
#95796F
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #8a821e;
/* rgb */ color: rgb(138, 130, 30);
/* oklch */ color: oklch(59.6% 0.116 104.6);
Tailwind
colors: {
  custom: {
    50: '#b0a663',
    500: '#8a821e',
    950: '#000000',
  },
}
SCSS
$custom: #8a821e;
$custom-light: #b0a663;
$custom-dark: #000000;
JSON
{
  "hex": "#8a821e",
  "rgb": {
    "r": 138,
    "g": 130,
    "b": 30
  },
  "hsl": {
    "h": 55.556,
    "s": 64.286,
    "l": 32.941
  },
  "oklch": {
    "l": 0.5958,
    "c": 0.11566,
    "h": 104.6
  },
  "luminance": 0.21462
}

Semantic roles & 50–950 ramp

primary
#8A821E
secondary
#4A52BA
accent
#4DE741
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8A821E

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

Preview Lab → · Contrast checker → · Palette generator →

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