#8162EA#8162EA

#8162EA is a mid, vivid violet. Relative luminance 0.193; OKLCH L 59.7% C 0.196 H 289.6°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#8162EA
RGBrgb(129, 98, 234)
HSLhsl(254, 76%, 65%)
HSVhsv(254, 58%, 92%)
CMYKcmyk(44.9%, 58.1%, 0%, 8.2%)
CIE-LABlab(51.09, 44.59, -64.86)
CIE-LCHlch(51.09, 78.71, 304.51°)
OKLaboklab(59.7% 0.0659 -0.1851)
OKLCHoklch(59.7% 0.196 289.6)
XYZxyz(28.2680, 19.3420, 80.0699)
Luminance0.1934 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8162EA #CBEA62
analogous
#6287EA #8162EA #C562EA
triadic
#8162EA #EA8162 #62EA81
tetradic
#8162EA #EA6287 #CBEA62 #62EAC5
square
#8162EA #EA6287 #CBEA62 #62EAC5
split-complementary
#8162EA #EAC562 #87EA62
monochromatic
#3D19B9 #562CE3 #8162EA #AC98F1 #D8CEF8

Accessibility & contrast

On white

4.31
#8162EA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.87
#8162EA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8162EA
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8162EA#FFFFFF#000000##000000
##8162EA1.004.314.874.87
#FFFFFF4.311.0021.0021.00
#0000004.8721.001.001.00
##0000004.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CEE
Deuteranopia (green-blind)
#0076E7
Tritanopia (blue-blind)
#61819D
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #8162ea;
/* rgb */ color: rgb(129, 98, 234);
/* oklch */ color: oklch(59.7% 0.196 289.6);
Tailwind
colors: {
  custom: {
    50: '#ac90f2',
    500: '#8162ea',
    950: '#000000',
  },
}
SCSS
$custom: #8162ea;
$custom-light: #ac90f2;
$custom-dark: #000000;
JSON
{
  "hex": "#8162ea",
  "rgb": {
    "r": 129,
    "g": 98,
    "b": 234
  },
  "hsl": {
    "h": 253.676,
    "s": 76.404,
    "l": 65.098
  },
  "oklch": {
    "l": 0.597,
    "c": 0.19648,
    "h": 289.6
  },
  "luminance": 0.19343
}

Semantic roles & 50–950 ramp

primary
#8162EA
secondary
#E0EBBD
accent
#D90DAA
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C17
muted
#807D85

Preview Lab

Preview with #8162EA

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

Preview Lab → · Contrast checker → · Palette generator →

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