#815CE2#815CE2

#815CE2 is a mid, vivid violet. Relative luminance 0.178; OKLCH L 58.2% C 0.195 H 292.0°. Best body text is #FFFFFF at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#815CE2
RGBrgb(129, 92, 226)
HSLhsl(257, 70%, 62%)
HSVhsv(257, 59%, 89%)
CMYKcmyk(42.9%, 59.3%, 0%, 11.4%)
CIE-LABlab(49.27, 45.75, -63.29)
CIE-LCHlch(49.27, 78.09, 305.86°)
OKLaboklab(58.2% 0.0728 -0.1805)
OKLCHoklch(58.2% 0.195 292)
XYZxyz(26.6041, 17.8116, 73.9730)
Luminance0.1781 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#815CE2 #BDE25C
analogous
#5C7AE2 #815CE2 #C45CE2
triadic
#815CE2 #E2815C #5CE281
tetradic
#815CE2 #E25C7A #BDE25C #5CE2C4
square
#815CE2 #E25C7A #BDE25C #5CE2C4
split-complementary
#815CE2 #E2C45C #7AE25C
monochromatic
#431EA6 #5928D9 #815CE2 #A990EB #D1C4F4

Accessibility & contrast

On white

4.60
#815CE2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.56
#815CE2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #815CE2
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##815CE2#FFFFFF#000000##FFFFFF
##815CE21.004.604.564.60
#FFFFFF4.601.0021.001.00
#0000004.5621.001.0021.00
##FFFFFF4.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0077E6
Deuteranopia (green-blind)
#0072DF
Tritanopia (blue-blind)
#657A96
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #815ce2;
/* rgb */ color: rgb(129, 92, 226);
/* oklch */ color: oklch(58.2% 0.195 292.0);
Tailwind
colors: {
  custom: {
    50: '#ac8cec',
    500: '#815ce2',
    950: '#000000',
  },
}
SCSS
$custom: #815ce2;
$custom-light: #ac8cec;
$custom-dark: #000000;
JSON
{
  "hex": "#815ce2",
  "rgb": {
    "r": 129,
    "g": 92,
    "b": 226
  },
  "hsl": {
    "h": 256.567,
    "s": 69.792,
    "l": 62.353
  },
  "oklch": {
    "l": 0.58198,
    "c": 0.19462,
    "h": 292
  },
  "luminance": 0.17812
}

Semantic roles & 50–950 ramp

primary
#815CE2
secondary
#D8E5B4
accent
#D2149D
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C16
muted
#807D84

Preview Lab

Preview with #815CE2

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

Preview Lab → · Contrast checker → · Palette generator →

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