#862A7B#862A7B

#862A7B is a mid, vivid purple. Relative luminance 0.082; OKLCH L 45.4% C 0.157 H 333.0°. Best body text is #FFFFFF at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#862A7B
RGBrgb(134, 42, 123)
HSLhsl(307, 52%, 35%)
HSVhsv(307, 69%, 53%)
CMYKcmyk(0%, 68.7%, 8.2%, 47.5%)
CIE-LABlab(34.30, 48.70, -26.12)
CIE-LCHlch(34.30, 55.26, 331.79°)
OKLaboklab(45.43% 0.1403 -0.0715)
OKLCHoklch(45.43% 0.157 333)
XYZxyz(14.2347, 8.1555, 19.5595)
Luminance0.0815 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862A7B #2A8635
analogous
#632A86 #862A7B #862A4D
triadic
#862A7B #7B862A #2A7B86
tetradic
#862A7B #86632A #2A8635 #2A4D86
square
#862A7B #86632A #2A8635 #2A4D86
split-complementary
#862A7B #4D862A #2A8663
monochromatic
#290D25 #571B50 #862A7B #B539A6 #CD5EBF

Accessibility & contrast

On white

7.98
#862A7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#862A7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #862A7B
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862A7B#FFFFFF#000000##FFFFFF
##862A7B1.007.982.637.98
#FFFFFF7.981.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#27487D
Deuteranopia (green-blind)
#475579
Tritanopia (blue-blind)
#8C324F
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #862a7b;
/* rgb */ color: rgb(134, 42, 123);
/* oklch */ color: oklch(45.4% 0.157 333.0);
Tailwind
colors: {
  custom: {
    50: '#ac6ba1',
    500: '#862a7b',
    950: '#000000',
  },
}
SCSS
$custom: #862a7b;
$custom-light: #ac6ba1;
$custom-dark: #000000;
JSON
{
  "hex": "#862a7b",
  "rgb": {
    "r": 134,
    "g": 42,
    "b": 123
  },
  "hsl": {
    "h": 307.174,
    "s": 52.273,
    "l": 34.51
  },
  "oklch": {
    "l": 0.45428,
    "c": 0.15747,
    "h": 333
  },
  "luminance": 0.08154
}

Semantic roles & 50–950 ramp

primary
#862A7B
secondary
#5AB264
accent
#DC5D4C
background
#FAF6F9
surface
#F5ECF2
border
#CFC7CC
text
#11070F
muted
#807A7E

Preview Lab

Preview with #862A7B

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

Preview Lab → · Contrast checker → · Palette generator →

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