#8A4792#8A4792

#8A4792 is a mid, vivid purple. Relative luminance 0.120; OKLCH L 51.0% C 0.136 H 323.2°. Best body text is #FFFFFF at 6.18:1 contrast (WCAG AA passes).

Color values

HEX#8A4792
RGBrgb(138, 71, 146)
HSLhsl(294, 35%, 43%)
HSVhsv(294, 51%, 57%)
CMYKcmyk(5.5%, 51.4%, 0%, 42.7%)
CIE-LABlab(41.19, 40.19, -29.41)
CIE-LCHlch(41.19, 49.81, 323.80°)
OKLaboklab(50.97% 0.1086 -0.0812)
OKLCHoklch(50.97% 0.136 323.2)
XYZxyz(17.9223, 11.9859, 28.5580)
Luminance0.1198 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4792 #4F9247
analogous
#654792 #8A4792 #924774
triadic
#8A4792 #928A47 #47928A
tetradic
#8A4792 #926547 #4F9247 #477492
square
#8A4792 #926547 #4F9247 #477492
split-complementary
#8A4792 #749247 #479265
monochromatic
#3C1F40 #633369 #8A4792 #AB63B3 #C18CC7

Accessibility & contrast

On white

6.18
#8A4792 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#8A4792 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4792
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4792#FFFFFF#000000##FFFFFF
##8A47921.006.183.406.18
#FFFFFF6.181.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D5C95
Deuteranopia (green-blind)
#516490
Tritanopia (blue-blind)
#8C5066
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #8a4792;
/* rgb */ color: rgb(138, 71, 146);
/* oklch */ color: oklch(51.0% 0.136 323.2);
Tailwind
colors: {
  custom: {
    50: '#ae7db2',
    500: '#8a4792',
    950: '#000000',
  },
}
SCSS
$custom: #8a4792;
$custom-light: #ae7db2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4792",
  "rgb": {
    "r": 138,
    "g": 71,
    "b": 146
  },
  "hsl": {
    "h": 293.6,
    "s": 34.562,
    "l": 42.549
  },
  "oklch": {
    "l": 0.50974,
    "c": 0.13554,
    "h": 323.2
  },
  "luminance": 0.11985
}

Semantic roles & 50–950 ramp

primary
#8A4792
secondary
#87B382
accent
#CB5D69
background
#FAF7FB
surface
#F5EEF6
border
#CFC9D0
text
#100A11
muted
#7F7C80

Preview Lab

Preview with #8A4792

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

Preview Lab → · Contrast checker → · Palette generator →

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