#862BB2#862BB2

#862BB2 is a mid, highly saturated purple. Relative luminance 0.100; OKLCH L 49.1% C 0.205 H 311.8°. Best body text is #FFFFFF at 7.00:1 contrast (WCAG AA passes).

Color values

HEX#862BB2
RGBrgb(134, 43, 178)
HSLhsl(280, 61%, 43%)
HSVhsv(280, 76%, 70%)
CMYKcmyk(24.7%, 75.8%, 0%, 30.2%)
CIE-LABlab(37.86, 58.80, -53.93)
CIE-LCHlch(37.86, 79.79, 317.47°)
OKLaboklab(49.07% 0.1367 -0.1526)
OKLCHoklch(49.07% 0.205 311.8)
XYZxyz(18.7298, 10.0109, 43.0565)
Luminance0.1001 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862BB2 #57B22B
analogous
#422BB2 #862BB2 #B22B9A
triadic
#862BB2 #B2862B #2BB286
tetradic
#862BB2 #B2422B #57B22B #2B9AB2
square
#862BB2 #B2422B #57B22B #2B9AB2
split-complementary
#862BB2 #9AB22B #2BB242
monochromatic
#3C134F #611F81 #862BB2 #A548D3 #BD79DF

Accessibility & contrast

On white

7.00
#862BB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

3.00
#862BB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #862BB2
7.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862BB2#FFFFFF#000000##FFFFFF
##862BB21.007.003.007.00
#FFFFFF7.001.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF7.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B6
Deuteranopia (green-blind)
#145BAF
Tritanopia (blue-blind)
#814B6D
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #862bb2;
/* rgb */ color: rgb(134, 43, 178);
/* oklch */ color: oklch(49.1% 0.205 311.8);
Tailwind
colors: {
  custom: {
    50: '#ae6eca',
    500: '#862bb2',
    950: '#000000',
  },
}
SCSS
$custom: #862bb2;
$custom-light: #ae6eca;
$custom-dark: #000000;
JSON
{
  "hex": "#862bb2",
  "rgb": {
    "r": 134,
    "g": 43,
    "b": 178
  },
  "hsl": {
    "h": 280.444,
    "s": 61.086,
    "l": 43.333
  },
  "oklch": {
    "l": 0.49066,
    "c": 0.20491,
    "h": 311.8
  },
  "luminance": 0.1001
}

Semantic roles & 50–950 ramp

primary
#862BB2
secondary
#8EC772
accent
#E44478
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82

Preview Lab

Preview with #862BB2

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

Preview Lab → · Contrast checker → · Palette generator →

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