#8A8525#8A8525

#8A8525 is a mid, moderate yellow. Relative luminance 0.223; OKLCH L 60.3% C 0.114 H 106.4°. Best body text is #000000 at 5.46:1 contrast (WCAG AA passes).

Color values

HEX#8A8525
RGBrgb(138, 133, 37)
HSLhsl(57, 58%, 34%)
HSVhsv(57, 73%, 54%)
CMYKcmyk(0%, 3.6%, 73.2%, 45.9%)
CIE-LABlab(54.36, -9.87, 49.47)
CIE-LCHlch(54.36, 50.45, 101.28°)
OKLaboklab(60.31% -0.0322 0.1096)
OKLCHoklch(60.31% 0.114 106.4)
XYZxyz(19.2034, 22.3126, 5.0451)
Luminance0.2231 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8525 #252A8A
analogous
#8A5325 #8A8525 #5D8A25
triadic
#8A8525 #258A85 #85258A
tetradic
#8A8525 #258A53 #252A8A #8A255D
square
#8A8525 #258A53 #252A8A #8A255D
split-complementary
#8A8525 #255D8A #53258A
monochromatic
#29280B #5A5618 #8A8525 #BAB432 #D2CC57

Accessibility & contrast

On white

3.84
#8A8525 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.46
#8A8525 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8525
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8525#FFFFFF#000000##000000
##8A85251.003.845.465.46
#FFFFFF3.841.0021.0021.00
#0000005.4621.001.001.00
##0000005.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#918014
Deuteranopia (green-blind)
#93842C
Tritanopia (blue-blind)
#947C72
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #8a8525;
/* rgb */ color: rgb(138, 133, 37);
/* oklch */ color: oklch(60.3% 0.114 106.4);
Tailwind
colors: {
  custom: {
    50: '#afa867',
    500: '#8a8525',
    950: '#000000',
  },
}
SCSS
$custom: #8a8525;
$custom-light: #afa867;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8525",
  "rgb": {
    "r": 138,
    "g": 133,
    "b": 37
  },
  "hsl": {
    "h": 57.03,
    "s": 57.714,
    "l": 34.314
  },
  "oklch": {
    "l": 0.60314,
    "c": 0.11427,
    "h": 106.4
  },
  "luminance": 0.22312
}

Semantic roles & 50–950 ramp

primary
#8A8525
secondary
#5459B7
accent
#4EE147
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8A8525

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

Preview Lab → · Contrast checker → · Palette generator →

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