#8A2895#8A2895

#8A2895 is a mid, vivid purple. Relative luminance 0.091; OKLCH L 47.4% C 0.184 H 323.5°. Best body text is #FFFFFF at 7.45:1 contrast (WCAG AA passes).

Color values

HEX#8A2895
RGBrgb(138, 40, 149)
HSLhsl(294, 58%, 37%)
HSVhsv(294, 73%, 58%)
CMYKcmyk(7.4%, 73.2%, 0%, 41.6%)
CIE-LABlab(36.16, 55.02, -39.20)
CIE-LCHlch(36.16, 67.55, 324.53°)
OKLaboklab(47.37% 0.1478 -0.1093)
OKLCHoklch(47.37% 0.184 323.5)
XYZxyz(16.6643, 9.0918, 29.3051)
Luminance0.0909 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2895 #339528
analogous
#542895 #8A2895 #95286A
triadic
#8A2895 #958A28 #28958A
tetradic
#8A2895 #955428 #339528 #286A95
square
#8A2895 #955428 #339528 #286A95
split-complementary
#8A2895 #6A9528 #289554
monochromatic
#310E35 #5D1B65 #8A2895 #B735C5 #C962D5

Accessibility & contrast

On white

7.45
#8A2895 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#8A2895 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2895
7.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2895#FFFFFF#000000##FFFFFF
##8A28951.007.452.827.45
#FFFFFF7.451.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004E98
Deuteranopia (green-blind)
#3B5992
Tritanopia (blue-blind)
#8C3B5C
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #8a2895;
/* rgb */ color: rgb(138, 40, 149);
/* oklch */ color: oklch(47.4% 0.184 323.5);
Tailwind
colors: {
  custom: {
    50: '#b06cb5',
    500: '#8a2895',
    950: '#000000',
  },
}
SCSS
$custom: #8a2895;
$custom-light: #b06cb5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2895",
  "rgb": {
    "r": 138,
    "g": 40,
    "b": 149
  },
  "hsl": {
    "h": 293.945,
    "s": 57.672,
    "l": 37.059
  },
  "oklch": {
    "l": 0.47367,
    "c": 0.18383,
    "h": 323.5
  },
  "luminance": 0.09091
}

Semantic roles & 50–950 ramp

primary
#8A2895
secondary
#67BB5E
accent
#E14756
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110711
muted
#807A80

Preview Lab

Preview with #8A2895

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

Preview Lab → · Contrast checker → · Palette generator →

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