#815BC2#815BC2

#815BC2 is a mid, vivid violet. Relative luminance 0.160; OKLCH L 55.9% C 0.156 H 298.2°. Best body text is #FFFFFF at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#815BC2
RGBrgb(129, 91, 194)
HSLhsl(262, 46%, 56%)
HSVhsv(262, 53%, 76%)
CMYKcmyk(33.5%, 53.1%, 0%, 23.9%)
CIE-LABlab(47.03, 37.75, -48.59)
CIE-LCHlch(47.03, 61.53, 307.84°)
OKLaboklab(55.91% 0.0737 -0.1373)
OKLCHoklch(55.91% 0.156 298.2)
XYZxyz(22.5296, 16.0441, 52.9383)
Luminance0.1604 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#815BC2 #9CC25B
analogous
#5B68C2 #815BC2 #B45BC2
triadic
#815BC2 #C2815B #5BC281
tetradic
#815BC2 #C25B68 #9CC25B #5BC2B4
square
#815BC2 #C25B68 #9CC25B #5BC2B4
split-complementary
#815BC2 #C2B45B #68C25B
monochromatic
#482C77 #623DA3 #815BC2 #A388D3 #C6B4E3

Accessibility & contrast

On white

4.99
#815BC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.21
#815BC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #815BC2
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##815BC2#FFFFFF#000000##FFFFFF
##815BC21.004.994.214.99
#FFFFFF4.991.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3370C6
Deuteranopia (green-blind)
#3E6EC0
Tritanopia (blue-blind)
#736F86
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #815bc2;
/* rgb */ color: rgb(129, 91, 194);
/* oklch */ color: oklch(55.9% 0.156 298.2);
Tailwind
colors: {
  custom: {
    50: '#a98ad5',
    500: '#815bc2',
    950: '#000000',
  },
}
SCSS
$custom: #815bc2;
$custom-light: #a98ad5;
$custom-dark: #000000;
JSON
{
  "hex": "#815bc2",
  "rgb": {
    "r": 129,
    "g": 91,
    "b": 194
  },
  "hsl": {
    "h": 262.136,
    "s": 45.778,
    "l": 55.882
  },
  "oklch": {
    "l": 0.55907,
    "c": 0.15585,
    "h": 298.2
  },
  "luminance": 0.16044
}

Semantic roles & 50–950 ramp

primary
#815BC2
secondary
#C2D2A7
accent
#D552A5
background
#FAF8FD
surface
#F4F0FA
border
#CECBD3
text
#100C14
muted
#7F7D83

Preview Lab

Preview with #815BC2

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

Preview Lab → · Contrast checker → · Palette generator →

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