#815FA2#815FA2

#815FA2 is a mid, moderate violet. Relative luminance 0.155; OKLCH L 54.8% C 0.108 H 306.5°. Best body text is #FFFFFF at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#815FA2
RGBrgb(129, 95, 162)
HSLhsl(270, 26%, 50%)
HSVhsv(270, 41%, 64%)
CMYKcmyk(20.4%, 41.4%, 0%, 36.5%)
CIE-LABlab(46.26, 27.37, -31.11)
CIE-LCHlch(46.26, 41.44, 311.34°)
OKLaboklab(54.77% 0.064 -0.0864)
OKLCHoklch(54.77% 0.108 306.5)
XYZxyz(19.6658, 15.4603, 36.1235)
Luminance0.1546 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#815FA2 #80A25F
analogous
#605FA2 #815FA2 #A25FA1
triadic
#815FA2 #A2815F #5FA281
tetradic
#815FA2 #A2605F #80A25F #5FA1A2
square
#815FA2 #A2605F #80A25F #5FA1A2
split-complementary
#815FA2 #A1A25F #5FA260
monochromatic
#443155 #62487C #815FA2 #9F86B8 #BEACCF

Accessibility & contrast

On white

5.13
#815FA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#815FA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #815FA2
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##815FA2#FFFFFF#000000##FFFFFF
##815FA21.005.134.095.13
#FFFFFF5.131.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#506CA4
Deuteranopia (green-blind)
#586EA0
Tritanopia (blue-blind)
#7C6979
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #815fa2;
/* rgb */ color: rgb(129, 95, 162);
/* oklch */ color: oklch(54.8% 0.108 306.5);
Tailwind
colors: {
  custom: {
    50: '#a78dbe',
    500: '#815fa2',
    950: '#000000',
  },
}
SCSS
$custom: #815fa2;
$custom-light: #a78dbe;
$custom-dark: #000000;
JSON
{
  "hex": "#815fa2",
  "rgb": {
    "r": 129,
    "g": 95,
    "b": 162
  },
  "hsl": {
    "h": 270.448,
    "s": 26.482,
    "l": 50.392
  },
  "oklch": {
    "l": 0.54774,
    "c": 0.10755,
    "h": 306.5
  },
  "luminance": 0.1546
}

Semantic roles & 50–950 ramp

primary
#815FA2
secondary
#AEBD9F
accent
#C36593
background
#FAF8FB
surface
#F4F0F6
border
#CECBD0
text
#0F0C12
muted
#7F7D81

Preview Lab

Preview with #815FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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