#815BD7#815BD7

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

Color values

HEX#815BD7
RGBrgb(129, 91, 215)
HSLhsl(258, 61%, 60%)
HSVhsv(258, 58%, 84%)
CMYKcmyk(40%, 57.7%, 0%, 15.7%)
CIE-LABlab(48.33, 43.32, -58.56)
CIE-LCHlch(48.33, 72.84, 306.49°)
OKLaboklab(57.28% 0.0742 -0.1666)
OKLCHoklch(57.28% 0.182 294)
XYZxyz(25.0568, 17.0550, 66.2486)
Luminance0.1706 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#815BD7 #B1D75B
analogous
#5B73D7 #815BD7 #BF5BD7
triadic
#815BD7 #D7815B #5BD781
tetradic
#815BD7 #D75B73 #B1D75B #5BD7BF
square
#815BD7 #D75B73 #B1D75B #5BD7BF
split-complementary
#815BD7 #D7BF5B #73D75B
monochromatic
#462494 #5E30C5 #815BD7 #A78CE3 #CDBDEF

Accessibility & contrast

On white

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

On black

4.41
#815BD7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##815BD7#FFFFFF#000000##FFFFFF
##815BD71.004.764.414.76
#FFFFFF4.761.0021.001.00
#0000004.4121.001.0021.00
##FFFFFF4.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E74DB
Deuteranopia (green-blind)
#2271D4
Tritanopia (blue-blind)
#6B7690
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #815bd7;
/* rgb */ color: rgb(129, 91, 215);
/* oklch */ color: oklch(57.3% 0.182 294.0);
Tailwind
colors: {
  custom: {
    50: '#ab8be4',
    500: '#815bd7',
    950: '#000000',
  },
}
SCSS
$custom: #815bd7;
$custom-light: #ab8be4;
$custom-dark: #000000;
JSON
{
  "hex": "#815bd7",
  "rgb": {
    "r": 129,
    "g": 91,
    "b": 215
  },
  "hsl": {
    "h": 258.387,
    "s": 60.784,
    "l": 60
  },
  "oklch": {
    "l": 0.5728,
    "c": 0.18236,
    "h": 294
  },
  "luminance": 0.17056
}

Semantic roles & 50–950 ramp

primary
#815BD7
secondary
#D0DFAF
accent
#E444B3
background
#FAF8FE
surface
#F5F0FC
border
#CFCBD5
text
#100C16
muted
#7F7D84

Preview Lab

Preview with #815BD7

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

Preview Lab → · Contrast checker → · Palette generator →

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