#8162EB#8162EB

#8162EB is a mid, vivid violet. Relative luminance 0.194; OKLCH L 59.8% C 0.198 H 289.5°. Best body text is #000000 at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#8162EB
RGBrgb(129, 98, 235)
HSLhsl(254, 77%, 65%)
HSVhsv(254, 58%, 92%)
CMYKcmyk(45.1%, 58.3%, 0%, 7.8%)
CIE-LABlab(51.15, 44.87, -65.31)
CIE-LCHlch(51.15, 79.24, 304.49°)
OKLaboklab(59.77% 0.0659 -0.1864)
OKLCHoklch(59.77% 0.198 289.5)
XYZxyz(28.4121, 19.3996, 80.8286)
Luminance0.1940 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8162EB #CCEB62
analogous
#6287EB #8162EB #C662EB
triadic
#8162EB #EB8162 #62EB81
tetradic
#8162EB #EB6287 #CCEB62 #62EBC6
square
#8162EB #EB6287 #CCEB62 #62EBC6
split-complementary
#8162EB #EBC662 #87EB62
monochromatic
#3D18BB #552CE4 #8162EB #AD98F2 #D8CFF9

Accessibility & contrast

On white

4.30
#8162EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.88
#8162EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8162EB
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8162EB#FFFFFF#000000##000000
##8162EB1.004.304.884.88
#FFFFFF4.301.0021.0021.00
#0000004.8821.001.001.00
##0000004.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#007DEF
Deuteranopia (green-blind)
#0077E8
Tritanopia (blue-blind)
#60819D
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #8162eb;
/* rgb */ color: rgb(129, 98, 235);
/* oklch */ color: oklch(59.8% 0.198 289.5);
Tailwind
colors: {
  custom: {
    50: '#ac90f2',
    500: '#8162eb',
    950: '#000000',
  },
}
SCSS
$custom: #8162eb;
$custom-light: #ac90f2;
$custom-dark: #000000;
JSON
{
  "hex": "#8162eb",
  "rgb": {
    "r": 129,
    "g": 98,
    "b": 235
  },
  "hsl": {
    "h": 253.577,
    "s": 77.401,
    "l": 65.294
  },
  "oklch": {
    "l": 0.5977,
    "c": 0.19773,
    "h": 289.5
  },
  "luminance": 0.19401
}

Semantic roles & 50–950 ramp

primary
#8162EB
secondary
#E1EBBD
accent
#DA0CAB
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C17
muted
#807D85

Preview Lab

Preview with #8162EB

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

Preview Lab → · Contrast checker → · Palette generator →

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