#8162BC#8162BC

#8162BC is a mid, vivid violet. Relative luminance 0.170; OKLCH L 56.7% C 0.137 H 297.8°. Best body text is #FFFFFF at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#8162BC
RGBrgb(129, 98, 188)
HSLhsl(261, 40%, 56%)
HSVhsv(261, 48%, 74%)
CMYKcmyk(31.4%, 47.9%, 0%, 26.3%)
CIE-LABlab(48.30, 32.12, -43.09)
CIE-LCHlch(48.30, 53.75, 306.70°)
OKLaboklab(56.74% 0.0639 -0.1212)
OKLCHoklch(56.74% 0.137 297.8)
XYZxyz(22.4958, 17.0331, 49.6697)
Luminance0.1703 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8162BC #9DBC62
analogous
#6270BC #8162BC #AE62BC
triadic
#8162BC #BC8162 #62BC81
tetradic
#8162BC #BC6270 #9DBC62 #62BCAE
square
#8162BC #BC6270 #9DBC62 #62BCAE
split-complementary
#8162BC #BCAE62 #70BC62
monochromatic
#483173 #62439E #8162BC #A38DCE #C6B8E1

Accessibility & contrast

On white

4.77
#8162BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.41
#8162BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8162BC
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8162BC#FFFFFF#000000##FFFFFF
##8162BC1.004.774.414.77
#FFFFFF4.771.0021.001.00
#0000004.4121.001.0021.00
##FFFFFF4.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4573BF
Deuteranopia (green-blind)
#4B72BA
Tritanopia (blue-blind)
#757386
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #8162bc;
/* rgb */ color: rgb(129, 98, 188);
/* oklch */ color: oklch(56.7% 0.137 297.8);
Tailwind
colors: {
  custom: {
    50: '#a88fd0',
    500: '#8162bc',
    950: '#000000',
  },
}
SCSS
$custom: #8162bc;
$custom-light: #a88fd0;
$custom-dark: #000000;
JSON
{
  "hex": "#8162bc",
  "rgb": {
    "r": 129,
    "g": 98,
    "b": 188
  },
  "hsl": {
    "h": 260.667,
    "s": 40.179,
    "l": 56.078
  },
  "oklch": {
    "l": 0.56743,
    "c": 0.13703,
    "h": 297.8
  },
  "luminance": 0.17033
}

Semantic roles & 50–950 ramp

primary
#8162BC
secondary
#C3CFAA
accent
#D058A7
background
#FAF8FC
surface
#F4F0F9
border
#CECBD2
text
#100C14
muted
#7F7D82

Preview Lab

Preview with #8162BC

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

Preview Lab → · Contrast checker → · Palette generator →

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