#8A8540#8A8540

#8A8540 is a mid, moderate yellow. Relative luminance 0.225; OKLCH L 60.6% C 0.091 H 105.0°. Best body text is #000000 at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#8A8540
RGBrgb(138, 133, 64)
HSLhsl(56, 37%, 40%)
HSVhsv(56, 54%, 54%)
CMYKcmyk(0%, 3.6%, 53.6%, 45.9%)
CIE-LABlab(54.60, -7.96, 37.41)
CIE-LCHlch(54.60, 38.25, 102.01°)
OKLaboklab(60.59% -0.0237 0.088)
OKLCHoklch(60.59% 0.091 105)
XYZxyz(19.7947, 22.5491, 8.1592)
Luminance0.2255 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8540 #40458A
analogous
#8A6040 #8A8540 #6A8A40
triadic
#8A8540 #408A85 #85408A
tetradic
#8A8540 #408A60 #40458A #8A406A
square
#8A8540 #408A60 #40458A #8A406A
split-complementary
#8A8540 #406A8A #60408A
monochromatic
#363419 #605D2D #8A8540 #B1AB56 #C4C080

Accessibility & contrast

On white

3.81
#8A8540 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.51
#8A8540 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8540
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8540#FFFFFF#000000##000000
##8A85401.003.815.515.51
#FFFFFF3.811.0021.0021.00
#0000005.5121.001.001.00
##0000005.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F813A
Deuteranopia (green-blind)
#918443
Tritanopia (blue-blind)
#937D75
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #8a8540;
/* rgb */ color: rgb(138, 133, 64);
/* oklch */ color: oklch(60.6% 0.091 105.0);
Tailwind
colors: {
  custom: {
    50: '#aea877',
    500: '#8a8540',
    950: '#000000',
  },
}
SCSS
$custom: #8a8540;
$custom-light: #aea877;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8540",
  "rgb": {
    "r": 138,
    "g": 133,
    "b": 64
  },
  "hsl": {
    "h": 55.946,
    "s": 36.634,
    "l": 39.608
  },
  "oklch": {
    "l": 0.60591,
    "c": 0.09113,
    "h": 105
  },
  "luminance": 0.22548
}

Semantic roles & 50–950 ramp

primary
#8A8540
secondary
#777BAF
accent
#63CD5B
background
#FAFAF7
surface
#F5F4ED
border
#CFCEC8
text
#100F09
muted
#7F7F7B

Preview Lab

Preview with #8A8540

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

Preview Lab → · Contrast checker → · Palette generator →

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