#815DC2#815DC2

#815DC2 is a mid, vivid violet. Relative luminance 0.164; OKLCH L 56.2% C 0.153 H 297.7°. Best body text is #FFFFFF at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#815DC2
RGBrgb(129, 93, 194)
HSLhsl(261, 45%, 56%)
HSVhsv(261, 52%, 76%)
CMYKcmyk(33.5%, 52.1%, 0%, 23.9%)
CIE-LABlab(47.48, 36.60, -47.87)
CIE-LCHlch(47.48, 60.26, 307.40°)
OKLaboklab(56.24% 0.0711 -0.1352)
OKLCHoklch(56.24% 0.153 297.7)
XYZxyz(22.7028, 16.3906, 52.9961)
Luminance0.1639 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#815DC2 #9EC25D
analogous
#5D6CC2 #815DC2 #B45DC2
triadic
#815DC2 #C2815D #5DC281
tetradic
#815DC2 #C25D6C #9EC25D #5DC2B4
square
#815DC2 #C25D6C #9EC25D #5DC2B4
split-complementary
#815DC2 #C2B45D #6CC25D
monochromatic
#482D78 #623EA4 #815DC2 #A489D3 #C6B6E3

Accessibility & contrast

On white

4.91
#815DC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#815DC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #815DC2
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##815DC2#FFFFFF#000000##FFFFFF
##815DC21.004.914.284.91
#FFFFFF4.911.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3771C5
Deuteranopia (green-blind)
#4070C0
Tritanopia (blue-blind)
#737187
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #815dc2;
/* rgb */ color: rgb(129, 93, 194);
/* oklch */ color: oklch(56.2% 0.153 297.7);
Tailwind
colors: {
  custom: {
    50: '#a98cd5',
    500: '#815dc2',
    950: '#000000',
  },
}
SCSS
$custom: #815dc2;
$custom-light: #a98cd5;
$custom-dark: #000000;
JSON
{
  "hex": "#815dc2",
  "rgb": {
    "r": 129,
    "g": 93,
    "b": 194
  },
  "hsl": {
    "h": 261.386,
    "s": 45.291,
    "l": 56.275
  },
  "oklch": {
    "l": 0.56241,
    "c": 0.15277,
    "h": 297.7
  },
  "luminance": 0.16391
}

Semantic roles & 50–950 ramp

primary
#815DC2
secondary
#C3D2A9
accent
#D553A7
background
#FAF8FD
surface
#F4F0FA
border
#CECBD3
text
#100C14
muted
#7F7D83

Preview Lab

Preview with #815DC2

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

Preview Lab → · Contrast checker → · Palette generator →

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