#815DFB#815DFB

#815DFB is a mid, highly saturated violet. Relative luminance 0.195; OKLCH L 60.2% C 0.224 H 288.3°. Best body text is #000000 at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#815DFB
RGBrgb(129, 93, 251)
HSLhsl(254, 95%, 67%)
HSVhsv(254, 63%, 98%)
CMYKcmyk(48.6%, 62.9%, 0%, 1.6%)
CIE-LABlab(51.22, 52.10, -74.14)
CIE-LCHlch(51.22, 90.61, 305.10°)
OKLaboklab(60.17% 0.0701 -0.2124)
OKLCHoklch(60.17% 0.224 288.3)
XYZxyz(30.3751, 19.4595, 93.4037)
Luminance0.1946 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#815DFB #D7FB5D
analogous
#5D88FB #815DFB #D05DFB
triadic
#815DFB #FB815D #5DFB81
tetradic
#815DFB #FB5D88 #D7FB5D #5DFBD0
square
#815DFB #FB5D88 #D7FB5D #5DFBD0
split-complementary
#815DFB #FBD05D #88FB5D
monochromatic
#3505D8 #5321FA #815DFB #AF99FC #DED4FE

Accessibility & contrast

On white

4.29
#815DFB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.89
#815DFB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #815DFB
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##815DFB#FFFFFF#000000##000000
##815DFB1.004.294.894.89
#FFFFFF4.291.0021.0021.00
#0000004.8921.001.001.00
##0000004.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#007EFF
Deuteranopia (green-blind)
#0076F8
Tritanopia (blue-blind)
#5783A4
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #815dfb;
/* rgb */ color: rgb(129, 93, 251);
/* oklch */ color: oklch(60.2% 0.224 288.3);
Tailwind
colors: {
  custom: {
    50: '#ae8dfe',
    500: '#815dfb',
    950: '#000000',
  },
}
SCSS
$custom: #815dfb;
$custom-light: #ae8dfe;
$custom-dark: #000000;
JSON
{
  "hex": "#815dfb",
  "rgb": {
    "r": 129,
    "g": 93,
    "b": 251
  },
  "hsl": {
    "h": 253.671,
    "s": 95.181,
    "l": 67.451
  },
  "oklch": {
    "l": 0.60172,
    "c": 0.22365,
    "h": 288.3
  },
  "luminance": 0.19461
}

Semantic roles & 50–950 ramp

primary
#815DFB
secondary
#E7F3C1
accent
#E600B1
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C18
muted
#807D86

Preview Lab

Preview with #815DFB

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

Preview Lab → · Contrast checker → · Palette generator →

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