#8051D2#8051D2

#8051D2 is a mid, vivid violet. Relative luminance 0.151; OKLCH L 55.3% C 0.190 H 296.4°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#8051D2
RGBrgb(128, 81, 210)
HSLhsl(262, 59%, 57%)
HSVhsv(262, 61%, 82%)
CMYKcmyk(39%, 61.4%, 0%, 17.6%)
CIE-LABlab(45.81, 47.29, -59.78)
CIE-LCHlch(45.81, 76.22, 308.35°)
OKLaboklab(55.31% 0.0846 -0.1702)
OKLCHoklch(55.31% 0.19 296.4)
XYZxyz(23.4744, 15.1268, 62.6433)
Luminance0.1513 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8051D2 #A3D251
analogous
#5163D2 #8051D2 #C051D2
triadic
#8051D2 #D28051 #51D280
tetradic
#8051D2 #D25163 #A3D251 #51D2C0
square
#8051D2 #D25163 #A3D251 #51D2C0
split-complementary
#8051D2 #D2C051 #63D251
monochromatic
#472386 #612FB7 #8051D2 #A382DF #C7B2EB

Accessibility & contrast

On white

5.22
#8051D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#8051D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8051D2
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8051D2#FFFFFF#000000##FFFFFF
##8051D21.005.224.035.22
#FFFFFF5.221.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DD6
Deuteranopia (green-blind)
#0A6BCF
Tritanopia (blue-blind)
#6C6E8A
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #8051d2;
/* rgb */ color: rgb(128, 81, 210);
/* oklch */ color: oklch(55.3% 0.190 296.4);
Tailwind
colors: {
  custom: {
    50: '#aa84e1',
    500: '#8051d2',
    950: '#000000',
  },
}
SCSS
$custom: #8051d2;
$custom-light: #aa84e1;
$custom-dark: #000000;
JSON
{
  "hex": "#8051d2",
  "rgb": {
    "r": 128,
    "g": 81,
    "b": 210
  },
  "hsl": {
    "h": 261.86,
    "s": 58.904,
    "l": 57.059
  },
  "oklch": {
    "l": 0.55308,
    "c": 0.19007,
    "h": 296.4
  },
  "luminance": 0.15127
}

Semantic roles & 50–950 ramp

primary
#8051D2
secondary
#C7DAA5
accent
#E246A9
background
#FAF8FD
surface
#F5EFFB
border
#CFCAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #8051D2

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

Preview Lab → · Contrast checker → · Palette generator →

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