#8A821F#8A821F

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

Color values

HEX#8A821F
RGBrgb(138, 130, 31)
HSLhsl(56, 63%, 33%)
HSVhsv(56, 78%, 54%)
CMYKcmyk(0%, 5.8%, 77.5%, 45.9%)
CIE-LABlab(53.46, -8.52, 50.84)
CIE-LCHlch(53.46, 51.55, 99.51°)
OKLaboklab(59.59% -0.029 0.1114)
OKLCHoklch(59.59% 0.115 104.6)
XYZxyz(18.7120, 21.4682, 4.4542)
Luminance0.2147 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A821F #1F278A
analogous
#8A4C1F #8A821F #5C8A1F
triadic
#8A821F #1F8A82 #821F8A
tetradic
#8A821F #1F8A4C #1F278A #8A1F5C
square
#8A821F #1F8A4C #1F278A #8A1F5C
split-complementary
#8A821F #1F5C8A #4C1F8A
monochromatic
#262409 #585314 #8A821F #BCB12A #D7CD4C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A821F#FFFFFF#000000##000000
##8A821F1.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)
#8E7D09
Deuteranopia (green-blind)
#918227
Tritanopia (blue-blind)
#95796F
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #8a821f;
/* rgb */ color: rgb(138, 130, 31);
/* oklch */ color: oklch(59.6% 0.115 104.6);
Tailwind
colors: {
  custom: {
    50: '#b0a663',
    500: '#8a821f',
    950: '#000000',
  },
}
SCSS
$custom: #8a821f;
$custom-light: #b0a663;
$custom-dark: #000000;
JSON
{
  "hex": "#8a821f",
  "rgb": {
    "r": 138,
    "g": 130,
    "b": 31
  },
  "hsl": {
    "h": 55.514,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.59586,
    "c": 0.11509,
    "h": 104.6
  },
  "luminance": 0.21467
}

Semantic roles & 50–950 ramp

primary
#8A821F
secondary
#4B53BA
accent
#4EE641
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8A821F

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

Preview Lab → · Contrast checker → · Palette generator →

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