#8A2DC9#8A2DC9

#8A2DC9 is a mid, highly saturated violet. Relative luminance 0.115; OKLCH L 51.5% C 0.225 H 307.0°. Best body text is #FFFFFF at 6.36:1 contrast (WCAG AA passes).

Color values

HEX#8A2DC9
RGBrgb(138, 45, 201)
HSLhsl(276, 63%, 48%)
HSVhsv(276, 78%, 79%)
CMYKcmyk(31.3%, 77.6%, 0%, 21.2%)
CIE-LABlab(40.41, 63.68, -63.28)
CIE-LCHlch(40.41, 89.78, 315.18°)
OKLaboklab(51.51% 0.1356 -0.18)
OKLCHoklch(51.51% 0.225 307)
XYZxyz(21.9600, 11.4974, 56.3094)
Luminance0.1150 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2DC9 #6CC92D
analogous
#3C2DC9 #8A2DC9 #C92DBA
triadic
#8A2DC9 #C98A2D #2DC98A
tetradic
#8A2DC9 #C93C2D #6CC92D #2DBAC9
square
#8A2DC9 #C93C2D #6CC92D #2DBAC9
split-complementary
#8A2DC9 #BAC92D #2DC93C
monochromatic
#451765 #682297 #8A2DC9 #A659DA #C18BE5

Accessibility & contrast

On white

6.36
#8A2DC9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#8A2DC9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A2DC9
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2DC9#FFFFFF#000000##FFFFFF
##8A2DC91.006.363.306.36
#FFFFFF6.361.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CCD
Deuteranopia (green-blind)
#0060C6
Tritanopia (blue-blind)
#7F557B
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #8a2dc9;
/* rgb */ color: rgb(138, 45, 201);
/* oklch */ color: oklch(51.5% 0.225 307.0);
Tailwind
colors: {
  custom: {
    50: '#b271da',
    500: '#8a2dc9',
    950: '#000000',
  },
}
SCSS
$custom: #8a2dc9;
$custom-light: #b271da;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2dc9",
  "rgb": {
    "r": 138,
    "g": 45,
    "b": 201
  },
  "hsl": {
    "h": 275.769,
    "s": 63.415,
    "l": 48.235
  },
  "oklch": {
    "l": 0.51511,
    "c": 0.22537,
    "h": 307
  },
  "luminance": 0.11497
}

Semantic roles & 50–950 ramp

primary
#8A2DC9
secondary
#A2CF83
accent
#E64184
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#120815
muted
#817B83

Preview Lab

Preview with #8A2DC9

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

Preview Lab → · Contrast checker → · Palette generator →

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