#8A27D4#8A27D4

#8A27D4 is a mid, highly saturated violet. Relative luminance 0.116; OKLCH L 51.9% C 0.241 H 304.7°. Best body text is #FFFFFF at 6.32:1 contrast (WCAG AA passes).

Color values

HEX#8A27D4
RGBrgb(138, 39, 212)
HSLhsl(274, 69%, 49%)
HSVhsv(274, 82%, 83%)
CMYKcmyk(34.9%, 81.6%, 0%, 16.9%)
CIE-LABlab(40.59, 68.07, -69.36)
CIE-LCHlch(40.59, 97.18, 314.46°)
OKLaboklab(51.91% 0.1372 -0.1978)
OKLCHoklch(51.91% 0.241 304.7)
XYZxyz(23.0877, 11.6079, 63.2988)
Luminance0.1161 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A27D4 #71D427
analogous
#3327D4 #8A27D4 #D427C8
triadic
#8A27D4 #D48A27 #27D48A
tetradic
#8A27D4 #D43327 #71D427 #27C8D4
square
#8A27D4 #D43327 #71D427 #27C8D4
split-complementary
#8A27D4 #C8D427 #27D433
monochromatic
#47146D #681DA0 #8A27D4 #A658E0 #C28CEA

Accessibility & contrast

On white

6.32
#8A27D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#8A27D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A27D4
6.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A27D4#FFFFFF#000000##FFFFFF
##8A27D41.006.323.326.32
#FFFFFF6.321.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DD9
Deuteranopia (green-blind)
#0060D1
Tritanopia (blue-blind)
#7C5780
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #8a27d4;
/* rgb */ color: rgb(138, 39, 212);
/* oklch */ color: oklch(51.9% 0.241 304.7);
Tailwind
colors: {
  custom: {
    50: '#b36fe2',
    500: '#8a27d4',
    950: '#000000',
  },
}
SCSS
$custom: #8a27d4;
$custom-light: #b36fe2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a27d4",
  "rgb": {
    "r": 138,
    "g": 39,
    "b": 212
  },
  "hsl": {
    "h": 274.335,
    "s": 68.924,
    "l": 49.216
  },
  "oklch": {
    "l": 0.51908,
    "c": 0.24072,
    "h": 304.7
  },
  "luminance": 0.11608
}

Semantic roles & 50–950 ramp

primary
#8A27D4
secondary
#A6D483
accent
#EC3C87
background
#FBF7FE
surface
#F6EDFC
border
#D0C8D5
text
#120816
muted
#817B84

Preview Lab

Preview with #8A27D4

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

Preview Lab → · Contrast checker → · Palette generator →

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