#8A8427#8A8427

#8A8427 is a mid, moderate yellow. Relative luminance 0.221; OKLCH L 60.1% C 0.112 H 105.6°. Best body text is #000000 at 5.41:1 contrast (WCAG AA passes).

Color values

HEX#8A8427
RGBrgb(138, 132, 39)
HSLhsl(56, 56%, 35%)
HSVhsv(56, 72%, 54%)
CMYKcmyk(0%, 4.3%, 71.7%, 45.9%)
CIE-LABlab(54.08, -9.22, 48.41)
CIE-LCHlch(54.08, 49.28, 100.78°)
OKLaboklab(60.1% -0.0302 0.1078)
OKLCHoklch(60.1% 0.112 105.6)
XYZxyz(19.0995, 22.0530, 5.1696)
Luminance0.2205 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8427 #272D8A
analogous
#8A5327 #8A8427 #5E8A27
triadic
#8A8427 #278A84 #84278A
tetradic
#8A8427 #278A53 #272D8A #8A275E
square
#8A8427 #278A53 #272D8A #8A275E
split-complementary
#8A8427 #275E8A #53278A
monochromatic
#2B290C #5A561A #8A8427 #BAB234 #D1C95B

Accessibility & contrast

On white

3.88
#8A8427 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.41
#8A8427 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8427
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8427#FFFFFF#000000##000000
##8A84271.003.885.415.41
#FFFFFF3.881.0021.0021.00
#0000005.4121.001.001.00
##0000005.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#907F18
Deuteranopia (green-blind)
#92832D
Tritanopia (blue-blind)
#947B72
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #8a8427;
/* rgb */ color: rgb(138, 132, 39);
/* oklch */ color: oklch(60.1% 0.112 105.6);
Tailwind
colors: {
  custom: {
    50: '#afa767',
    500: '#8a8427',
    950: '#000000',
  },
}
SCSS
$custom: #8a8427;
$custom-light: #afa767;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8427",
  "rgb": {
    "r": 138,
    "g": 132,
    "b": 39
  },
  "hsl": {
    "h": 56.364,
    "s": 55.932,
    "l": 34.706
  },
  "oklch": {
    "l": 0.601,
    "c": 0.11191,
    "h": 105.6
  },
  "luminance": 0.22052
}

Semantic roles & 50–950 ramp

primary
#8A8427
secondary
#575DB6
accent
#52DF49
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8A8427

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

Preview Lab → · Contrast checker → · Palette generator →

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