#8A8A27#8A8A27

#8A8A27 is a mid, moderate yellow. Relative luminance 0.237; OKLCH L 61.5% C 0.118 H 109.4°. Best body text is #000000 at 5.75:1 contrast (WCAG AA passes).

Color values

HEX#8A8A27
RGBrgb(138, 138, 39)
HSLhsl(60, 56%, 35%)
HSVhsv(60, 72%, 54%)
CMYKcmyk(0%, 0%, 71.7%, 45.9%)
CIE-LABlab(55.81, -12.46, 50.12)
CIE-LCHlch(55.81, 51.64, 103.96°)
OKLaboklab(61.48% -0.0393 0.1114)
OKLCHoklch(61.48% 0.118 109.4)
XYZxyz(19.9366, 23.7273, 5.4487)
Luminance0.2373 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8A27 #27278A
analogous
#8A5927 #8A8A27 #598A27
triadic
#8A8A27 #278A8A #8A278A
tetradic
#8A8A27 #278A59 #27278A #8A2759
square
#8A8A27 #278A59 #27278A #8A2759
split-complementary
#8A8A27 #27598A #59278A
monochromatic
#2B2B0C #5A5A1A #8A8A27 #BABA34 #D1D15B

Accessibility & contrast

On white

3.66
#8A8A27 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.75
#8A8A27 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8A27
5.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8A27#FFFFFF#000000##000000
##8A8A271.003.665.755.75
#FFFFFF3.661.0021.0021.00
#0000005.7521.001.001.00
##0000005.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#958416
Deuteranopia (green-blind)
#97872E
Tritanopia (blue-blind)
#948177
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #8a8a27;
/* rgb */ color: rgb(138, 138, 39);
/* oklch */ color: oklch(61.5% 0.118 109.4);
Tailwind
colors: {
  custom: {
    50: '#afab68',
    500: '#8a8a27',
    950: '#000000',
  },
}
SCSS
$custom: #8a8a27;
$custom-light: #afab68;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8a27",
  "rgb": {
    "r": 138,
    "g": 138,
    "b": 39
  },
  "hsl": {
    "h": 60,
    "s": 55.932,
    "l": 34.706
  },
  "oklch": {
    "l": 0.6148,
    "c": 0.11809,
    "h": 109.4
  },
  "luminance": 0.23727
}

Semantic roles & 50–950 ramp

primary
#8A8A27
secondary
#5757B6
accent
#49DF49
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #8A8A27

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

Preview Lab → · Contrast checker → · Palette generator →

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