#8A802C#8A802C

#8A802C is a mid, moderate yellow. Relative luminance 0.210; OKLCH L 59.2% C 0.104 H 102.5°. Best body text is #000000 at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#8A802C
RGBrgb(138, 128, 44)
HSLhsl(54, 52%, 36%)
HSVhsv(54, 68%, 54%)
CMYKcmyk(0%, 7.2%, 68.1%, 45.9%)
CIE-LABlab(52.98, -6.73, 45.18)
CIE-LCHlch(52.98, 45.68, 98.48°)
OKLaboklab(59.23% -0.0225 0.1019)
OKLCHoklch(59.23% 0.104 102.5)
XYZxyz(18.6558, 21.0242, 5.4578)
Luminance0.2102 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A802C #2C368A
analogous
#8A512C #8A802C #658A2C
triadic
#8A802C #2C8A80 #802C8A
tetradic
#8A802C #2C8A51 #2C368A #8A2C65
square
#8A802C #2C8A51 #2C368A #8A2C65
split-complementary
#8A802C #2C658A #512C8A
monochromatic
#2D2A0E #5C551D #8A802C #B8AB3B #CDC263

Accessibility & contrast

On white

4.03
#8A802C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.20
#8A802C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A802C
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A802C#FFFFFF#000000##000000
##8A802C1.004.035.205.20
#FFFFFF4.031.0021.0021.00
#0000005.2021.001.001.00
##0000005.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7C21
Deuteranopia (green-blind)
#8F8031
Tritanopia (blue-blind)
#94776F
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #8a802c;
/* rgb */ color: rgb(138, 128, 44);
/* oklch */ color: oklch(59.2% 0.104 102.5);
Tailwind
colors: {
  custom: {
    50: '#afa46a',
    500: '#8a802c',
    950: '#000000',
  },
}
SCSS
$custom: #8a802c;
$custom-light: #afa46a;
$custom-dark: #000000;
JSON
{
  "hex": "#8a802c",
  "rgb": {
    "r": 138,
    "g": 128,
    "b": 44
  },
  "hsl": {
    "h": 53.617,
    "s": 51.648,
    "l": 35.686
  },
  "oklch": {
    "l": 0.59231,
    "c": 0.10432,
    "h": 102.5
  },
  "luminance": 0.21023
}

Semantic roles & 50–950 ramp

primary
#8A802C
secondary
#5E67B4
accent
#5CDB4D
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F07
muted
#807F7A

Preview Lab

Preview with #8A802C

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

Preview Lab → · Contrast checker → · Palette generator →

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