#8151D2#8151D2

#8151D2 is a mid, vivid violet. Relative luminance 0.152; OKLCH L 55.4% C 0.190 H 296.9°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#8151D2
RGBrgb(129, 81, 210)
HSLhsl(262, 59%, 57%)
HSVhsv(262, 61%, 82%)
CMYKcmyk(38.6%, 61.4%, 0%, 17.6%)
CIE-LABlab(45.91, 47.51, -59.60)
CIE-LCHlch(45.91, 76.22, 308.56°)
OKLaboklab(55.41% 0.0859 -0.1696)
OKLCHoklch(55.41% 0.19 296.9)
XYZxyz(23.6256, 15.2047, 62.6503)
Luminance0.1520 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8151D2 #A2D251
analogous
#5161D2 #8151D2 #C251D2
triadic
#8151D2 #D28151 #51D281
tetradic
#8151D2 #D25161 #A2D251 #51D2C2
square
#8151D2 #D25161 #A2D251 #51D2C2
split-complementary
#8151D2 #D2C251 #61D251
monochromatic
#482386 #622FB7 #8151D2 #A482DF #C7B2EB

Accessibility & contrast

On white

5.20
#8151D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#8151D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8151D2
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8151D2#FFFFFF#000000##FFFFFF
##8151D21.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)
#006DD6
Deuteranopia (green-blind)
#0E6BCF
Tritanopia (blue-blind)
#6D6E8A
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #8151d2;
/* rgb */ color: rgb(129, 81, 210);
/* oklch */ color: oklch(55.4% 0.190 296.9);
Tailwind
colors: {
  custom: {
    50: '#ab84e1',
    500: '#8151d2',
    950: '#000000',
  },
}
SCSS
$custom: #8151d2;
$custom-light: #ab84e1;
$custom-dark: #000000;
JSON
{
  "hex": "#8151d2",
  "rgb": {
    "r": 129,
    "g": 81,
    "b": 210
  },
  "hsl": {
    "h": 262.326,
    "s": 58.904,
    "l": 57.059
  },
  "oklch": {
    "l": 0.55409,
    "c": 0.19018,
    "h": 296.9
  },
  "luminance": 0.15205
}

Semantic roles & 50–950 ramp

primary
#8151D2
secondary
#C6DAA5
accent
#E246A8
background
#FAF8FD
surface
#F5EFFB
border
#CFCAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #8151D2

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

Preview Lab → · Contrast checker → · Palette generator →

#8151D2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva