#8162F8#8162F8

#8162F8 is a mid, highly saturated violet. Relative luminance 0.202; OKLCH L 60.7% C 0.214 H 287.8°. Best body text is #000000 at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#8162F8
RGBrgb(129, 98, 248)
HSLhsl(252, 91%, 68%)
HSVhsv(252, 60%, 97%)
CMYKcmyk(48%, 60.5%, 0%, 2.7%)
CIE-LABlab(52.04, 48.52, -71.14)
CIE-LCHlch(52.04, 86.11, 304.29°)
OKLaboklab(60.7% 0.0653 -0.2036)
OKLCHoklch(60.7% 0.214 287.8)
XYZxyz(30.3593, 20.1785, 91.0839)
Luminance0.2018 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8162F8 #D9F862
analogous
#628EF8 #8162F8 #CC62F8
triadic
#8162F8 #F88162 #62F881
tetradic
#8162F8 #F8628E #D9F862 #62F8CC
square
#8162F8 #F8628E #D9F862 #62F8CC
split-complementary
#8162F8 #F8CC62 #8EF862
monochromatic
#340AD6 #5227F5 #8162F8 #B09DFB #DFD7FD

Accessibility & contrast

On white

4.17
#8162F8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.04
#8162F8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8162F8
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8162F8#FFFFFF#000000##000000
##8162F81.004.175.045.04
#FFFFFF4.171.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#0080FD
Deuteranopia (green-blind)
#0078F5
Tritanopia (blue-blind)
#5885A4
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #8162f8;
/* rgb */ color: rgb(129, 98, 248);
/* oklch */ color: oklch(60.7% 0.214 287.8);
Tailwind
colors: {
  custom: {
    50: '#ae90fb',
    500: '#8162f8',
    950: '#000000',
  },
}
SCSS
$custom: #8162f8;
$custom-light: #ae90fb;
$custom-dark: #000000;
JSON
{
  "hex": "#8162f8",
  "rgb": {
    "r": 129,
    "g": 98,
    "b": 248
  },
  "hsl": {
    "h": 252.4,
    "s": 91.463,
    "l": 67.843
  },
  "oklch": {
    "l": 0.607,
    "c": 0.2138,
    "h": 287.8
  },
  "luminance": 0.2018
}

Semantic roles & 50–950 ramp

primary
#8162F8
secondary
#E8F2C4
accent
#E600B6
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110D18
muted
#807D86

Preview Lab

Preview with #8162F8

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

Preview Lab → · Contrast checker → · Palette generator →

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