#815CD4#815CD4

#815CD4 is a mid, vivid violet. Relative luminance 0.171; OKLCH L 57.2% C 0.177 H 294.3°. Best body text is #FFFFFF at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#815CD4
RGBrgb(129, 92, 212)
HSLhsl(259, 58%, 60%)
HSVhsv(259, 57%, 83%)
CMYKcmyk(39.2%, 56.6%, 0%, 16.9%)
CIE-LABlab(48.35, 41.95, -56.81)
CIE-LCHlch(48.35, 70.62, 306.44°)
OKLaboklab(57.24% 0.073 -0.1614)
OKLCHoklch(57.24% 0.177 294.3)
XYZxyz(24.7609, 17.0743, 64.2657)
Luminance0.1708 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#815CD4 #AFD45C
analogous
#5C73D4 #815CD4 #BD5CD4
triadic
#815CD4 #D4815C #5CD481
tetradic
#815CD4 #D45C73 #AFD45C #5CD4BD
square
#815CD4 #D45C73 #AFD45C #5CD4BD
split-complementary
#815CD4 #D4BD5C #73D45C
monochromatic
#472690 #5E33C0 #815CD4 #A68CE1 #CCBDEE

Accessibility & contrast

On white

4.76
#815CD4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.42
#815CD4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #815CD4
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##815CD4#FFFFFF#000000##FFFFFF
##815CD41.004.764.424.76
#FFFFFF4.761.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B74D8
Deuteranopia (green-blind)
#2971D1
Tritanopia (blue-blind)
#6C768F
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #815cd4;
/* rgb */ color: rgb(129, 92, 212);
/* oklch */ color: oklch(57.2% 0.177 294.3);
Tailwind
colors: {
  custom: {
    50: '#aa8be2',
    500: '#815cd4',
    950: '#000000',
  },
}
SCSS
$custom: #815cd4;
$custom-light: #aa8be2;
$custom-dark: #000000;
JSON
{
  "hex": "#815cd4",
  "rgb": {
    "r": 129,
    "g": 92,
    "b": 212
  },
  "hsl": {
    "h": 258.5,
    "s": 58.252,
    "l": 59.608
  },
  "oklch": {
    "l": 0.57236,
    "c": 0.17719,
    "h": 294.3
  },
  "luminance": 0.17075
}

Semantic roles & 50–950 ramp

primary
#815CD4
secondary
#CFDDAF
accent
#E146B2
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100C15
muted
#7F7D83

Preview Lab

Preview with #815CD4

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

Preview Lab → · Contrast checker → · Palette generator →

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