#8162CC#8162CC

#8162CC is a mid, vivid violet. Relative luminance 0.178; OKLCH L 57.7% C 0.158 H 294.4°. Best body text is #FFFFFF at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#8162CC
RGBrgb(129, 98, 204)
HSLhsl(258, 51%, 59%)
HSVhsv(258, 52%, 80%)
CMYKcmyk(36.8%, 52%, 0%, 20%)
CIE-LABlab(49.21, 36.36, -50.87)
CIE-LCHlch(49.21, 62.53, 305.55°)
OKLaboklab(57.71% 0.0653 -0.144)
OKLCHoklch(57.71% 0.158 294.4)
XYZxyz(24.3172, 17.7616, 59.2622)
Luminance0.1776 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8162CC #ADCC62
analogous
#6278CC #8162CC #B662CC
triadic
#8162CC #CC8162 #62CC81
tetradic
#8162CC #CC6278 #ADCC62 #62CCB6
square
#8162CC #CC6278 #ADCC62 #62CCB6
split-complementary
#8162CC #CCB662 #78CC62
monochromatic
#472C88 #5F3BB6 #8162CC #A690DB #CBBEEA

Accessibility & contrast

On white

4.61
#8162CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.55
#8162CC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #8162CC
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8162CC#FFFFFF#000000##FFFFFF
##8162CC1.004.614.554.61
#FFFFFF4.611.0021.001.00
#0000004.5521.001.0021.00
##FFFFFF4.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3776D0
Deuteranopia (green-blind)
#3E73CA
Tritanopia (blue-blind)
#6F778E
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #8162cc;
/* rgb */ color: rgb(129, 98, 204);
/* oklch */ color: oklch(57.7% 0.158 294.4);
Tailwind
colors: {
  custom: {
    50: '#a98fdc',
    500: '#8162cc',
    950: '#000000',
  },
}
SCSS
$custom: #8162cc;
$custom-light: #a98fdc;
$custom-dark: #000000;
JSON
{
  "hex": "#8162cc",
  "rgb": {
    "r": 129,
    "g": 98,
    "b": 204
  },
  "hsl": {
    "h": 257.547,
    "s": 50.962,
    "l": 59.216
  },
  "oklch": {
    "l": 0.5771,
    "c": 0.15812,
    "h": 294.4
  },
  "luminance": 0.17762
}

Semantic roles & 50–950 ramp

primary
#8162CC
secondary
#CEDAB0
accent
#DA4DB1
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100C15
muted
#7F7D83

Preview Lab

Preview with #8162CC

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

Preview Lab → · Contrast checker → · Palette generator →

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