#862D9B#862D9B

#862D9B is a mid, vivid purple. Relative luminance 0.093; OKLCH L 47.7% C 0.181 H 319.3°. Best body text is #FFFFFF at 7.34:1 contrast (WCAG AA passes).

Color values

HEX#862D9B
RGBrgb(134, 45, 155)
HSLhsl(289, 55%, 39%)
HSVhsv(289, 71%, 61%)
CMYKcmyk(13.5%, 71%, 0%, 39.2%)
CIE-LABlab(36.58, 53.33, -42.21)
CIE-LCHlch(36.58, 68.01, 321.64°)
OKLaboklab(47.66% 0.1375 -0.1183)
OKLCHoklch(47.66% 0.181 319.3)
XYZxyz(16.6855, 9.3125, 31.9226)
Luminance0.0931 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862D9B #429B2D
analogous
#4F2D9B #862D9B #9B2D79
triadic
#862D9B #9B862D #2D9B86
tetradic
#862D9B #9B4F2D #429B2D #2D799B
square
#862D9B #9B4F2D #429B2D #2D799B
split-complementary
#862D9B #799B2D #2D9B4F
monochromatic
#34113C #5D1F6C #862D9B #AD3EC7 #C16ED5

Accessibility & contrast

On white

7.34
#862D9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#862D9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #862D9B
7.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862D9B#FFFFFF#000000##FFFFFF
##862D9B1.007.342.867.34
#FFFFFF7.341.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00509E
Deuteranopia (green-blind)
#355998
Tritanopia (blue-blind)
#864261
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #862d9b;
/* rgb */ color: rgb(134, 45, 155);
/* oklch */ color: oklch(47.7% 0.181 319.3);
Tailwind
colors: {
  custom: {
    50: '#ad6eb9',
    500: '#862d9b',
    950: '#000000',
  },
}
SCSS
$custom: #862d9b;
$custom-light: #ad6eb9;
$custom-dark: #000000;
JSON
{
  "hex": "#862d9b",
  "rgb": {
    "r": 134,
    "g": 45,
    "b": 155
  },
  "hsl": {
    "h": 288.545,
    "s": 55,
    "l": 39.216
  },
  "oklch": {
    "l": 0.47659,
    "c": 0.18134,
    "h": 319.3
  },
  "luminance": 0.09312
}

Semantic roles & 50–950 ramp

primary
#862D9B
secondary
#78BC68
accent
#DE4966
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110811
muted
#807B80

Preview Lab

Preview with #862D9B

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

Preview Lab → · Contrast checker → · Palette generator →

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