#8162CA#8162CA

#8162CA is a mid, vivid violet. Relative luminance 0.177; OKLCH L 57.6% C 0.156 H 294.8°. Best body text is #FFFFFF at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#8162CA
RGBrgb(129, 98, 202)
HSLhsl(258, 50%, 59%)
HSVhsv(258, 51%, 79%)
CMYKcmyk(36.1%, 51.5%, 0%, 20.8%)
CIE-LABlab(49.09, 35.82, -49.91)
CIE-LCHlch(49.09, 61.43, 305.67°)
OKLaboklab(57.58% 0.0652 -0.1412)
OKLCHoklch(57.58% 0.156 294.8)
XYZxyz(24.0789, 17.6663, 58.0070)
Luminance0.1767 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8162CA #ABCA62
analogous
#6277CA #8162CA #B562CA
triadic
#8162CA #CA8162 #62CA81
tetradic
#8162CA #CA6277 #ABCA62 #62CAB5
square
#8162CA #CA6277 #ABCA62 #62CAB5
split-complementary
#8162CA #CAB562 #77CA62
monochromatic
#472D85 #603CB3 #8162CA #A690D9 #CABEE9

Accessibility & contrast

On white

4.63
#8162CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.53
#8162CA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #8162CA
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8162CA#FFFFFF#000000##FFFFFF
##8162CA1.004.634.534.63
#FFFFFF4.631.0021.001.00
#0000004.5321.001.0021.00
##FFFFFF4.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3976CE
Deuteranopia (green-blind)
#4073C8
Tritanopia (blue-blind)
#70778D
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #8162ca;
/* rgb */ color: rgb(129, 98, 202);
/* oklch */ color: oklch(57.6% 0.156 294.8);
Tailwind
colors: {
  custom: {
    50: '#a98fdb',
    500: '#8162ca',
    950: '#000000',
  },
}
SCSS
$custom: #8162ca;
$custom-light: #a98fdb;
$custom-dark: #000000;
JSON
{
  "hex": "#8162ca",
  "rgb": {
    "r": 129,
    "g": 98,
    "b": 202
  },
  "hsl": {
    "h": 257.885,
    "s": 49.524,
    "l": 58.824
  },
  "oklch": {
    "l": 0.57585,
    "c": 0.15551,
    "h": 294.8
  },
  "luminance": 0.17667
}

Semantic roles & 50–950 ramp

primary
#8162CA
secondary
#CCD8AF
accent
#D94FB0
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100C15
muted
#7F7D83

Preview Lab

Preview with #8162CA

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

Preview Lab → · Contrast checker → · Palette generator →

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