#8A2DBC#8A2DBC

#8A2DBC is a mid, highly saturated violet. Relative luminance 0.109; OKLCH L 50.5% C 0.213 H 310.4°. Best body text is #FFFFFF at 6.60:1 contrast (WCAG AA passes).

Color values

HEX#8A2DBC
RGBrgb(138, 45, 188)
HSLhsl(279, 61%, 46%)
HSVhsv(279, 76%, 74%)
CMYKcmyk(26.6%, 76.1%, 0%, 26.3%)
CIE-LABlab(39.43, 60.90, -57.27)
CIE-LCHlch(39.43, 83.60, 316.76°)
OKLaboklab(50.52% 0.1384 -0.1623)
OKLCHoklch(50.52% 0.213 310.4)
XYZxyz(20.4949, 10.9114, 48.5937)
Luminance0.1091 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2DBC #5FBC2D
analogous
#422DBC #8A2DBC #BC2DA6
triadic
#8A2DBC #BC8A2D #2DBC8A
tetradic
#8A2DBC #BC422D #5FBC2D #2DA6BC
square
#8A2DBC #BC422D #5FBC2D #2DA6BC
split-complementary
#8A2DBC #A6BC2D #2DBC42
monochromatic
#421559 #66218B #8A2DBC #A751D5 #C082E1

Accessibility & contrast

On white

6.60
#8A2DBC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#8A2DBC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A2DBC
6.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2DBC#FFFFFF#000000##FFFFFF
##8A2DBC1.006.603.186.60
#FFFFFF6.601.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C0
Deuteranopia (green-blind)
#045EB9
Tritanopia (blue-blind)
#834F73
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #8a2dbc;
/* rgb */ color: rgb(138, 45, 188);
/* oklch */ color: oklch(50.5% 0.213 310.4);
Tailwind
colors: {
  custom: {
    50: '#b170d1',
    500: '#8a2dbc',
    950: '#000000',
  },
}
SCSS
$custom: #8a2dbc;
$custom-light: #b170d1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2dbc",
  "rgb": {
    "r": 138,
    "g": 45,
    "b": 188
  },
  "hsl": {
    "h": 279.021,
    "s": 61.373,
    "l": 45.686
  },
  "oklch": {
    "l": 0.50521,
    "c": 0.21329,
    "h": 310.4
  },
  "luminance": 0.10911
}

Semantic roles & 50–950 ramp

primary
#8A2DBC
secondary
#96CA7B
accent
#E4437C
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #8A2DBC

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

Preview Lab → · Contrast checker → · Palette generator →

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