#8162CF#8162CF

#8162CF is a mid, vivid violet. Relative luminance 0.179; OKLCH L 57.9% C 0.162 H 293.8°. Best body text is #000000 at 4.58:1 contrast (WCAG AA passes).

Color values

HEX#8162CF
RGBrgb(129, 98, 207)
HSLhsl(257, 53%, 60%)
HSVhsv(257, 53%, 81%)
CMYKcmyk(37.7%, 52.7%, 0%, 18.8%)
CIE-LABlab(49.38, 37.17, -52.30)
CIE-LCHlch(49.38, 64.16, 305.40°)
OKLaboklab(57.9% 0.0655 -0.1482)
OKLCHoklch(57.9% 0.162 293.8)
XYZxyz(24.6805, 17.9069, 61.1754)
Luminance0.1791 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8162CF #B0CF62
analogous
#627ACF #8162CF #B762CF
triadic
#8162CF #CF8162 #62CF81
tetradic
#8162CF #CF627A #B0CF62 #62CFB7
square
#8162CF #CF627A #B0CF62 #62CFB7
split-complementary
#8162CF #CFB762 #7ACF62
monochromatic
#462B8C #5E39BB #8162CF #A791DD #CCC0EC

Accessibility & contrast

On white

4.58
#8162CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.58
#8162CF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8162CF
4.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8162CF#FFFFFF#000000##000000
##8162CF1.004.584.584.58
#FFFFFF4.581.0021.0021.00
#0000004.5821.001.001.00
##0000004.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#3477D3
Deuteranopia (green-blind)
#3B74CD
Tritanopia (blue-blind)
#6E788F
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #8162cf;
/* rgb */ color: rgb(129, 98, 207);
/* oklch */ color: oklch(57.9% 0.162 293.8);
Tailwind
colors: {
  custom: {
    50: '#aa8fde',
    500: '#8162cf',
    950: '#000000',
  },
}
SCSS
$custom: #8162cf;
$custom-light: #aa8fde;
$custom-dark: #000000;
JSON
{
  "hex": "#8162cf",
  "rgb": {
    "r": 129,
    "g": 98,
    "b": 207
  },
  "hsl": {
    "h": 257.064,
    "s": 53.171,
    "l": 59.804
  },
  "oklch": {
    "l": 0.57899,
    "c": 0.16203,
    "h": 293.8
  },
  "luminance": 0.17907
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8162CF

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

Preview Lab → · Contrast checker → · Palette generator →

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