#813DC2#813DC2

#813DC2 is a mid, vivid violet. Relative luminance 0.119; OKLCH L 51.6% C 0.198 H 303.5°. Best body text is #FFFFFF at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#813DC2
RGBrgb(129, 61, 194)
HSLhsl(271, 52%, 50%)
HSVhsv(271, 69%, 76%)
CMYKcmyk(33.5%, 68.6%, 0%, 23.9%)
CIE-LABlab(41.06, 53.71, -58.21)
CIE-LCHlch(41.06, 79.20, 312.70°)
OKLaboklab(51.55% 0.1096 -0.1655)
OKLCHoklch(51.55% 0.198 303.5)
XYZxyz(20.4574, 11.8997, 52.2476)
Luminance0.1190 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#813DC2 #7EC23D
analogous
#3F3DC2 #813DC2 #C23DC0
triadic
#813DC2 #C2813D #3DC281
tetradic
#813DC2 #C23F3D #7EC23D #3DC0C2
square
#813DC2 #C23F3D #7EC23D #3DC0C2
split-complementary
#813DC2 #C0C23D #3DC23F
monochromatic
#432065 #622E93 #813DC2 #9F6CD1 #BD9ADF

Accessibility & contrast

On white

6.21
#813DC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#813DC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #813DC2
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##813DC2#FFFFFF#000000##FFFFFF
##813DC21.006.213.386.21
#FFFFFF6.211.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FC6
Deuteranopia (green-blind)
#0061BF
Tritanopia (blue-blind)
#745C7B
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #813dc2;
/* rgb */ color: rgb(129, 61, 194);
/* oklch */ color: oklch(51.6% 0.198 303.5);
Tailwind
colors: {
  custom: {
    50: '#ab78d5',
    500: '#813dc2',
    950: '#000000',
  },
}
SCSS
$custom: #813dc2;
$custom-light: #ab78d5;
$custom-dark: #000000;
JSON
{
  "hex": "#813dc2",
  "rgb": {
    "r": 129,
    "g": 61,
    "b": 194
  },
  "hsl": {
    "h": 270.677,
    "s": 52.157,
    "l": 50
  },
  "oklch": {
    "l": 0.51554,
    "c": 0.19848,
    "h": 303.5
  },
  "luminance": 0.119
}

Semantic roles & 50–950 ramp

primary
#813DC2
secondary
#ADCB90
accent
#DC4C92
background
#FAF7FD
surface
#F5EDFA
border
#CFC8D3
text
#110914
muted
#807B83

Preview Lab

Preview with #813DC2

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

Preview Lab → · Contrast checker → · Palette generator →

#813DC2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva