#8162CD#8162CD

#8162CD is a mid, vivid violet. Relative luminance 0.178; OKLCH L 57.8% C 0.159 H 294.2°. Best body text is #FFFFFF at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#8162CD
RGBrgb(129, 98, 205)
HSLhsl(257, 52%, 59%)
HSVhsv(257, 52%, 80%)
CMYKcmyk(37.1%, 52.2%, 0%, 19.6%)
CIE-LABlab(49.26, 36.63, -51.35)
CIE-LCHlch(49.26, 63.07, 305.50°)
OKLaboklab(57.77% 0.0654 -0.1454)
OKLCHoklch(57.77% 0.159 294.2)
XYZxyz(24.4375, 17.8098, 59.8959)
Luminance0.1781 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8162CD #AECD62
analogous
#6279CD #8162CD #B762CD
triadic
#8162CD #CD8162 #62CD81
tetradic
#8162CD #CD6279 #AECD62 #62CDB7
square
#8162CD #CD6279 #AECD62 #62CDB7
split-complementary
#8162CD #CDB762 #79CD62
monochromatic
#472C89 #5F3AB7 #8162CD #A690DC #CCBFEB

Accessibility & contrast

On white

4.60
#8162CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.56
#8162CD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #8162CD
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8162CD#FFFFFF#000000##FFFFFF
##8162CD1.004.604.564.60
#FFFFFF4.601.0021.001.00
#0000004.5621.001.0021.00
##FFFFFF4.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3676D1
Deuteranopia (green-blind)
#3D73CB
Tritanopia (blue-blind)
#6E788E
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #8162cd;
/* rgb */ color: rgb(129, 98, 205);
/* oklch */ color: oklch(57.8% 0.159 294.2);
Tailwind
colors: {
  custom: {
    50: '#a98fdd',
    500: '#8162cd',
    950: '#000000',
  },
}
SCSS
$custom: #8162cd;
$custom-light: #a98fdd;
$custom-dark: #000000;
JSON
{
  "hex": "#8162cd",
  "rgb": {
    "r": 129,
    "g": 98,
    "b": 205
  },
  "hsl": {
    "h": 257.383,
    "s": 51.691,
    "l": 59.412
  },
  "oklch": {
    "l": 0.57773,
    "c": 0.15942,
    "h": 294.2
  },
  "luminance": 0.1781
}

Semantic roles & 50–950 ramp

primary
#8162CD
secondary
#CEDAB1
accent
#DB4DB2
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100C15
muted
#7F7D83

Preview Lab

Preview with #8162CD

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

Preview Lab → · Contrast checker → · Palette generator →

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