#8162DC#8162DC

#8162DC is a mid, vivid violet. Relative luminance 0.186; OKLCH L 58.7% C 0.179 H 291.6°. Best body text is #000000 at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#8162DC
RGBrgb(129, 98, 220)
HSLhsl(255, 64%, 62%)
HSVhsv(255, 55%, 86%)
CMYKcmyk(41.4%, 55.5%, 0%, 13.7%)
CIE-LABlab(50.18, 40.71, -58.42)
CIE-LCHlch(50.18, 71.21, 304.87°)
OKLaboklab(58.74% 0.066 -0.1662)
OKLCHoklch(58.74% 0.179 291.6)
XYZxyz(26.3357, 18.5690, 69.8929)
Luminance0.1857 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8162DC #BDDC62
analogous
#6280DC #8162DC #BE62DC
triadic
#8162DC #DC8162 #62DC81
tetradic
#8162DC #DC6280 #BDDC62 #62DCBE
square
#8162DC #DC6280 #BDDC62 #62DCBE
split-complementary
#8162DC #DCBE62 #80DC62
monochromatic
#4324A0 #5930D1 #8162DC #A994E7 #D1C6F2

Accessibility & contrast

On white

4.45
#8162DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.71
#8162DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8162DC
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8162DC#FFFFFF#000000##000000
##8162DC1.004.454.714.71
#FFFFFF4.451.0021.0021.00
#0000004.7121.001.001.00
##0000004.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#2179E0
Deuteranopia (green-blind)
#2975D9
Tritanopia (blue-blind)
#687C96
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #8162dc;
/* rgb */ color: rgb(129, 98, 220);
/* oklch */ color: oklch(58.7% 0.179 291.6);
Tailwind
colors: {
  custom: {
    50: '#ab8fe8',
    500: '#8162dc',
    950: '#000000',
  },
}
SCSS
$custom: #8162dc;
$custom-light: #ab8fe8;
$custom-dark: #000000;
JSON
{
  "hex": "#8162dc",
  "rgb": {
    "r": 129,
    "g": 98,
    "b": 220
  },
  "hsl": {
    "h": 255.246,
    "s": 63.542,
    "l": 62.353
  },
  "oklch": {
    "l": 0.58744,
    "c": 0.17879,
    "h": 291.6
  },
  "luminance": 0.1857
}

Semantic roles & 50–950 ramp

primary
#8162DC
secondary
#D8E3B7
accent
#CB1A9E
background
#FAF8FE
surface
#F5F0FD
border
#CFCBD5
text
#110C16
muted
#807D84

Preview Lab

Preview with #8162DC

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

Preview Lab → · Contrast checker → · Palette generator →

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