#8162BA#8162BA

#8162BA is a mid, vivid violet. Relative luminance 0.169; OKLCH L 56.6% C 0.134 H 298.3°. Best body text is #FFFFFF at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#8162BA
RGBrgb(129, 98, 186)
HSLhsl(261, 39%, 56%)
HSVhsv(261, 47%, 73%)
CMYKcmyk(30.6%, 47.3%, 0%, 27.1%)
CIE-LABlab(48.19, 31.60, -42.11)
CIE-LCHlch(48.19, 52.65, 306.89°)
OKLaboklab(56.63% 0.0636 -0.1184)
OKLCHoklch(56.63% 0.134 298.3)
XYZxyz(22.2817, 16.9475, 48.5421)
Luminance0.1695 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8162BA #9BBA62
analogous
#626FBA #8162BA #AD62BA
triadic
#8162BA #BA8162 #62BA81
tetradic
#8162BA #BA626F #9BBA62 #62BAAD
square
#8162BA #BA626F #9BBA62 #62BAAD
split-complementary
#8162BA #BAAD62 #6FBA62
monochromatic
#483170 #63449B #8162BA #A38DCD #C5B7DF

Accessibility & contrast

On white

4.78
#8162BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.39
#8162BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8162BA
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8162BA#FFFFFF#000000##FFFFFF
##8162BA1.004.784.394.78
#FFFFFF4.781.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4673BD
Deuteranopia (green-blind)
#4D72B8
Tritanopia (blue-blind)
#757285
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #8162ba;
/* rgb */ color: rgb(129, 98, 186);
/* oklch */ color: oklch(56.6% 0.134 298.3);
Tailwind
colors: {
  custom: {
    50: '#a88fcf',
    500: '#8162ba',
    950: '#000000',
  },
}
SCSS
$custom: #8162ba;
$custom-light: #a88fcf;
$custom-dark: #000000;
JSON
{
  "hex": "#8162ba",
  "rgb": {
    "r": 129,
    "g": 98,
    "b": 186
  },
  "hsl": {
    "h": 261.136,
    "s": 38.938,
    "l": 55.686
  },
  "oklch": {
    "l": 0.56627,
    "c": 0.13437,
    "h": 298.3
  },
  "luminance": 0.16948
}

Semantic roles & 50–950 ramp

primary
#8162BA
secondary
#C1CEAA
accent
#CF59A5
background
#FAF8FC
surface
#F4F0F9
border
#CECBD2
text
#100C14
muted
#7F7D82

Preview Lab

Preview with #8162BA

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

Preview Lab → · Contrast checker → · Palette generator →

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