#862DD1#862DD1

#862DD1 is a mid, highly saturated violet. Relative luminance 0.115; OKLCH L 51.6% C 0.232 H 303.5°. Best body text is #FFFFFF at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#862DD1
RGBrgb(134, 45, 209)
HSLhsl(273, 65%, 50%)
HSVhsv(273, 78%, 82%)
CMYKcmyk(35.9%, 78.5%, 0%, 18%)
CIE-LABlab(40.49, 64.78, -67.81)
CIE-LCHlch(40.49, 93.78, 313.69°)
OKLaboklab(51.65% 0.1281 -0.1934)
OKLCHoklch(51.65% 0.232 303.5)
XYZxyz(22.2758, 11.5486, 61.3648)
Luminance0.1155 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862DD1 #78D12D
analogous
#342DD1 #862DD1 #D12DCA
triadic
#862DD1 #D1862D #2DD186
tetradic
#862DD1 #D1342D #78D12D #2DCAD1
square
#862DD1 #D1342D #78D12D #2DCAD1
split-complementary
#862DD1 #CAD12D #2DD134
monochromatic
#45176C #66229F #862DD1 #A35FDC #C091E7

Accessibility & contrast

On white

6.34
#862DD1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#862DD1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #862DD1
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862DD1#FFFFFF#000000##FFFFFF
##862DD11.006.343.316.34
#FFFFFF6.341.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ED5
Deuteranopia (green-blind)
#005FCE
Tritanopia (blue-blind)
#77597F
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #862dd1;
/* rgb */ color: rgb(134, 45, 209);
/* oklch */ color: oklch(51.6% 0.232 303.5);
Tailwind
colors: {
  custom: {
    50: '#b071e0',
    500: '#862dd1',
    950: '#000000',
  },
}
SCSS
$custom: #862dd1;
$custom-light: #b071e0;
$custom-dark: #000000;
JSON
{
  "hex": "#862dd1",
  "rgb": {
    "r": 134,
    "g": 45,
    "b": 209
  },
  "hsl": {
    "h": 272.561,
    "s": 64.567,
    "l": 49.804
  },
  "oklch": {
    "l": 0.5165,
    "c": 0.23201,
    "h": 303.5
  },
  "luminance": 0.11549
}

Semantic roles & 50–950 ramp

primary
#862DD1
secondary
#AAD288
accent
#E8408D
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110815
muted
#807B83

Preview Lab

Preview with #862DD1

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

Preview Lab → · Contrast checker → · Palette generator →

#862DD1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva