#815AB2#815AB2

#815AB2 is a mid, vivid violet. Relative luminance 0.152; OKLCH L 54.8% C 0.137 H 302.6°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#815AB2
RGBrgb(129, 90, 178)
HSLhsl(267, 36%, 53%)
HSVhsv(267, 49%, 70%)
CMYKcmyk(27.5%, 49.4%, 0%, 30.2%)
CIE-LABlab(45.90, 34.23, -41.09)
CIE-LCHlch(45.90, 53.48, 309.80°)
OKLaboklab(54.77% 0.0738 -0.1154)
OKLCHoklch(54.77% 0.137 302.6)
XYZxyz(20.7435, 15.1938, 43.9507)
Luminance0.1519 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#815AB2 #8BB25A
analogous
#5A5FB2 #815AB2 #AD5AB2
triadic
#815AB2 #B2815A #5AB281
tetradic
#815AB2 #B25A5F #8BB25A #5AB2AD
square
#815AB2 #B25A5F #8BB25A #5AB2AD
split-complementary
#815AB2 #B2AD5A #5FB25A
monochromatic
#462E63 #63428D #815AB2 #A184C5 #C1ADD9

Accessibility & contrast

On white

5.20
#815AB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#815AB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #815AB2
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##815AB2#FFFFFF#000000##FFFFFF
##815AB21.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F6CB5
Deuteranopia (green-blind)
#496CB0
Tritanopia (blue-blind)
#786A7E
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #815ab2;
/* rgb */ color: rgb(129, 90, 178);
/* oklch */ color: oklch(54.8% 0.137 302.6);
Tailwind
colors: {
  custom: {
    50: '#a889c9',
    500: '#815ab2',
    950: '#000000',
  },
}
SCSS
$custom: #815ab2;
$custom-light: #a889c9;
$custom-dark: #000000;
JSON
{
  "hex": "#815ab2",
  "rgb": {
    "r": 129,
    "g": 90,
    "b": 178
  },
  "hsl": {
    "h": 266.591,
    "s": 36.364,
    "l": 52.549
  },
  "oklch": {
    "l": 0.54771,
    "c": 0.13693,
    "h": 302.6
  },
  "luminance": 0.15194
}

Semantic roles & 50–950 ramp

primary
#815AB2
secondary
#B6C7A1
accent
#CC5B9A
background
#FAF8FC
surface
#F4F0F8
border
#CECBD1
text
#100C13
muted
#7F7D82

Preview Lab

Preview with #815AB2

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

Preview Lab → · Contrast checker → · Palette generator →

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