#8A2DA7#8A2DA7

#8A2DA7 is a mid, vivid purple. Relative luminance 0.101; OKLCH L 49.0% C 0.194 H 316.8°. Best body text is #FFFFFF at 6.97:1 contrast (WCAG AA passes).

Color values

HEX#8A2DA7
RGBrgb(138, 45, 167)
HSLhsl(286, 58%, 42%)
HSVhsv(286, 73%, 65%)
CMYKcmyk(17.4%, 73.1%, 0%, 34.5%)
CIE-LABlab(37.97, 56.58, -47.17)
CIE-LCHlch(37.97, 73.67, 320.18°)
OKLaboklab(49.02% 0.1415 -0.1327)
OKLCHoklch(49.02% 0.194 316.8)
XYZxyz(18.3936, 10.0708, 37.5267)
Luminance0.1007 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2DA7 #4AA72D
analogous
#4D2DA7 #8A2DA7 #A72D87
triadic
#8A2DA7 #A78A2D #2DA78A
tetradic
#8A2DA7 #A74D2D #4AA72D #2D87A7
square
#8A2DA7 #A74D2D #4AA72D #2D87A7
split-complementary
#8A2DA7 #87A72D #2DA74D
monochromatic
#3A1347 #622077 #8A2DA7 #AC44CD #C275DA

Accessibility & contrast

On white

6.97
#8A2DA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#8A2DA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A2DA7
6.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2DA7#FFFFFF#000000##FFFFFF
##8A2DA71.006.973.016.97
#FFFFFF6.971.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054AA
Deuteranopia (green-blind)
#2E5CA4
Tritanopia (blue-blind)
#884667
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #8a2da7;
/* rgb */ color: rgb(138, 45, 167);
/* oklch */ color: oklch(49.0% 0.194 316.8);
Tailwind
colors: {
  custom: {
    50: '#b06fc2',
    500: '#8a2da7',
    950: '#000000',
  },
}
SCSS
$custom: #8a2da7;
$custom-light: #b06fc2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2da7",
  "rgb": {
    "r": 138,
    "g": 45,
    "b": 167
  },
  "hsl": {
    "h": 285.738,
    "s": 57.547,
    "l": 41.569
  },
  "oklch": {
    "l": 0.49023,
    "c": 0.19395,
    "h": 316.8
  },
  "luminance": 0.1007
}

Semantic roles & 50–950 ramp

primary
#8A2DA7
secondary
#82C16E
accent
#E1476C
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110812
muted
#807B81

Preview Lab

Preview with #8A2DA7

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

Preview Lab → · Contrast checker → · Palette generator →

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