#862B98#862B98

#862B98 is a mid, vivid purple. Relative luminance 0.091; OKLCH L 47.3% C 0.181 H 320.5°. Best body text is #FFFFFF at 7.47:1 contrast (WCAG AA passes).

Color values

HEX#862B98
RGBrgb(134, 43, 152)
HSLhsl(290, 56%, 38%)
HSVhsv(290, 72%, 60%)
CMYKcmyk(11.8%, 71.7%, 0%, 40.4%)
CIE-LABlab(36.11, 53.55, -41.15)
CIE-LCHlch(36.11, 67.53, 322.46°)
OKLaboklab(47.26% 0.1398 -0.1151)
OKLCHoklch(47.26% 0.181 320.5)
XYZxyz(16.3622, 9.0639, 30.5873)
Luminance0.0906 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862B98 #3D982B
analogous
#4F2B98 #862B98 #982B73
triadic
#862B98 #98862B #2B9886
tetradic
#862B98 #984F2B #3D982B #2B7398
square
#862B98 #984F2B #3D982B #2B7398
split-complementary
#862B98 #73982B #2B984F
monochromatic
#321039 #5C1E68 #862B98 #B039C7 #C369D5

Accessibility & contrast

On white

7.47
#862B98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#862B98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #862B98
7.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862B98#FFFFFF#000000##FFFFFF
##862B981.007.472.817.47
#FFFFFF7.471.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004F9B
Deuteranopia (green-blind)
#365895
Tritanopia (blue-blind)
#873F5F
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #862b98;
/* rgb */ color: rgb(134, 43, 152);
/* oklch */ color: oklch(47.3% 0.181 320.5);
Tailwind
colors: {
  custom: {
    50: '#ad6db7',
    500: '#862b98',
    950: '#000000',
  },
}
SCSS
$custom: #862b98;
$custom-light: #ad6db7;
$custom-dark: #000000;
JSON
{
  "hex": "#862b98",
  "rgb": {
    "r": 134,
    "g": 43,
    "b": 152
  },
  "hsl": {
    "h": 290.092,
    "s": 55.897,
    "l": 38.235
  },
  "oklch": {
    "l": 0.47261,
    "c": 0.18109,
    "h": 320.5
  },
  "luminance": 0.09063
}

Semantic roles & 50–950 ramp

primary
#862B98
secondary
#72BB64
accent
#DF4961
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110811
muted
#807B80

Preview Lab

Preview with #862B98

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

Preview Lab → · Contrast checker → · Palette generator →

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