#813DC4#813DC4

#813DC4 is a mid, highly saturated violet. Relative luminance 0.120; OKLCH L 51.7% C 0.201 H 303.0°. Best body text is #FFFFFF at 6.18:1 contrast (WCAG AA passes).

Color values

HEX#813DC4
RGBrgb(129, 61, 196)
HSLhsl(270, 53%, 50%)
HSVhsv(270, 69%, 77%)
CMYKcmyk(34.2%, 68.9%, 0%, 23.1%)
CIE-LABlab(41.20, 54.19, -59.14)
CIE-LCHlch(41.20, 80.21, 312.50°)
OKLaboklab(51.7% 0.1093 -0.1682)
OKLCHoklch(51.7% 0.201 303)
XYZxyz(20.6835, 11.9901, 53.4385)
Luminance0.1199 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#813DC4 #80C43D
analogous
#3D3DC4 #813DC4 #C43DC4
triadic
#813DC4 #C4813D #3DC481
tetradic
#813DC4 #C43D3D #80C43D #3DC4C4
square
#813DC4 #C43D3D #80C43D #3DC4C4
split-complementary
#813DC4 #C4C43D #3DC43D
monochromatic
#441F67 #622E96 #813DC4 #9F6CD2 #BE9BE1

Accessibility & contrast

On white

6.18
#813DC4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#813DC4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #813DC4
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##813DC4#FFFFFF#000000##FFFFFF
##813DC41.006.183.406.18
#FFFFFF6.181.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C8
Deuteranopia (green-blind)
#0061C1
Tritanopia (blue-blind)
#745C7C
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #813dc4;
/* rgb */ color: rgb(129, 61, 196);
/* oklch */ color: oklch(51.7% 0.201 303.0);
Tailwind
colors: {
  custom: {
    50: '#ab78d7',
    500: '#813dc4',
    950: '#000000',
  },
}
SCSS
$custom: #813dc4;
$custom-light: #ab78d7;
$custom-dark: #000000;
JSON
{
  "hex": "#813dc4",
  "rgb": {
    "r": 129,
    "g": 61,
    "b": 196
  },
  "hsl": {
    "h": 270.222,
    "s": 53.36,
    "l": 50.392
  },
  "oklch": {
    "l": 0.51702,
    "c": 0.20063,
    "h": 303
  },
  "luminance": 0.1199
}

Semantic roles & 50–950 ramp

primary
#813DC4
secondary
#AECD90
accent
#DD4B93
background
#FAF7FD
surface
#F5EDFA
border
#CFC8D3
text
#110914
muted
#807B83

Preview Lab

Preview with #813DC4

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

Preview Lab → · Contrast checker → · Palette generator →

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