#8A8927#8A8927

#8A8927 is a mid, moderate yellow. Relative luminance 0.234; OKLCH L 61.2% C 0.117 H 108.8°. Best body text is #000000 at 5.69:1 contrast (WCAG AA passes).

Color values

HEX#8A8927
RGBrgb(138, 137, 39)
HSLhsl(59, 56%, 35%)
HSVhsv(59, 72%, 54%)
CMYKcmyk(0%, 0.7%, 71.7%, 45.9%)
CIE-LABlab(55.52, -11.93, 49.83)
CIE-LCHlch(55.52, 51.24, 103.46°)
OKLaboklab(61.25% -0.0378 0.1108)
OKLCHoklch(61.25% 0.117 108.8)
XYZxyz(19.7938, 23.4417, 5.4011)
Luminance0.2344 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8927 #27288A
analogous
#8A5827 #8A8927 #5A8A27
triadic
#8A8927 #278A89 #89278A
tetradic
#8A8927 #278A58 #27288A #8A275A
square
#8A8927 #278A58 #27288A #8A275A
split-complementary
#8A8927 #275A8A #58278A
monochromatic
#2B2A0C #5A5A1A #8A8927 #BAB834 #D1CF5B

Accessibility & contrast

On white

3.69
#8A8927 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.69
#8A8927 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8927
5.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8927#FFFFFF#000000##000000
##8A89271.003.695.695.69
#FFFFFF3.691.0021.0021.00
#0000005.6921.001.001.00
##0000005.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#948317
Deuteranopia (green-blind)
#96872E
Tritanopia (blue-blind)
#948076
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #8a8927;
/* rgb */ color: rgb(138, 137, 39);
/* oklch */ color: oklch(61.2% 0.117 108.8);
Tailwind
colors: {
  custom: {
    50: '#afab68',
    500: '#8a8927',
    950: '#000000',
  },
}
SCSS
$custom: #8a8927;
$custom-light: #afab68;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8927",
  "rgb": {
    "r": 138,
    "g": 137,
    "b": 39
  },
  "hsl": {
    "h": 59.394,
    "s": 55.932,
    "l": 34.706
  },
  "oklch": {
    "l": 0.61249,
    "c": 0.11703,
    "h": 108.8
  },
  "luminance": 0.23441
}

Semantic roles & 50–950 ramp

primary
#8A8927
secondary
#5758B6
accent
#4ADF49
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #8A8927

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

Preview Lab → · Contrast checker → · Palette generator →

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