#8162CE#8162CE

#8162CE is a mid, vivid violet. Relative luminance 0.179; OKLCH L 57.8% C 0.161 H 294.0°. Best body text is #FFFFFF at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#8162CE
RGBrgb(129, 98, 206)
HSLhsl(257, 52%, 60%)
HSVhsv(257, 52%, 81%)
CMYKcmyk(37.4%, 52.4%, 0%, 19.2%)
CIE-LABlab(49.32, 36.90, -51.83)
CIE-LCHlch(49.32, 63.62, 305.45°)
OKLaboklab(57.84% 0.0654 -0.1468)
OKLCHoklch(57.84% 0.161 294)
XYZxyz(24.5586, 17.8582, 60.5336)
Luminance0.1786 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8162CE #AFCE62
analogous
#6279CE #8162CE #B762CE
triadic
#8162CE #CE8162 #62CE81
tetradic
#8162CE #CE6279 #AFCE62 #62CEB7
square
#8162CE #CE6279 #AFCE62 #62CEB7
split-complementary
#8162CE #CEB762 #79CE62
monochromatic
#472B8A #5E3AB9 #8162CE #A691DD #CCBFEB

Accessibility & contrast

On white

4.59
#8162CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.57
#8162CE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #8162CE
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8162CE#FFFFFF#000000##FFFFFF
##8162CE1.004.594.574.59
#FFFFFF4.591.0021.001.00
#0000004.5721.001.0021.00
##FFFFFF4.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3576D2
Deuteranopia (green-blind)
#3C73CC
Tritanopia (blue-blind)
#6E788F
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #8162ce;
/* rgb */ color: rgb(129, 98, 206);
/* oklch */ color: oklch(57.8% 0.161 294.0);
Tailwind
colors: {
  custom: {
    50: '#a98fdd',
    500: '#8162ce',
    950: '#000000',
  },
}
SCSS
$custom: #8162ce;
$custom-light: #a98fdd;
$custom-dark: #000000;
JSON
{
  "hex": "#8162ce",
  "rgb": {
    "r": 129,
    "g": 98,
    "b": 206
  },
  "hsl": {
    "h": 257.222,
    "s": 52.427,
    "l": 59.608
  },
  "oklch": {
    "l": 0.57836,
    "c": 0.16073,
    "h": 294
  },
  "luminance": 0.17859
}

Semantic roles & 50–950 ramp

primary
#8162CE
secondary
#CFDBB1
accent
#DC4CB3
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100C15
muted
#7F7D83

Preview Lab

Preview with #8162CE

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

Preview Lab → · Contrast checker → · Palette generator →

#8162CE Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva