#8156F2#8156F2

#8156F2 is a mid, highly saturated violet. Relative luminance 0.177; OKLCH L 58.5% C 0.222 H 290.6°. Best body text is #FFFFFF at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#8156F2
RGBrgb(129, 86, 242)
HSLhsl(257, 86%, 64%)
HSVhsv(257, 64%, 95%)
CMYKcmyk(46.7%, 64.5%, 0%, 5.1%)
CIE-LABlab(49.17, 53.38, -72.45)
CIE-LCHlch(49.17, 89.99, 306.38°)
OKLaboklab(58.48% 0.0779 -0.2074)
OKLCHoklch(58.48% 0.222 290.6)
XYZxyz(28.4035, 17.7324, 85.9133)
Luminance0.1773 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8156F2 #C7F256
analogous
#5679F2 #8156F2 #CF56F2
triadic
#8156F2 #F28156 #56F281
tetradic
#8156F2 #F25679 #C7F256 #56F2CF
square
#8156F2 #F25679 #C7F256 #56F2CF
split-complementary
#8156F2 #F2CF56 #79F256
monochromatic
#3F0FBF #571DEE #8156F2 #AB8FF6 #D6C8FB

Accessibility & contrast

On white

4.62
#8156F2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.55
#8156F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #8156F2
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8156F2#FFFFFF#000000##FFFFFF
##8156F21.004.624.554.62
#FFFFFF4.621.0021.001.00
#0000004.5521.001.0021.00
##FFFFFF4.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0078F7
Deuteranopia (green-blind)
#0071EF
Tritanopia (blue-blind)
#5D7C9D
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #8156f2;
/* rgb */ color: rgb(129, 86, 242);
/* oklch */ color: oklch(58.5% 0.222 290.6);
Tailwind
colors: {
  custom: {
    50: '#ae88f7',
    500: '#8156f2',
    950: '#000000',
  },
}
SCSS
$custom: #8156f2;
$custom-light: #ae88f7;
$custom-dark: #000000;
JSON
{
  "hex": "#8156f2",
  "rgb": {
    "r": 129,
    "g": 86,
    "b": 242
  },
  "hsl": {
    "h": 256.538,
    "s": 85.714,
    "l": 64.314
  },
  "oklch": {
    "l": 0.58482,
    "c": 0.22157,
    "h": 290.6
  },
  "luminance": 0.17734
}

Semantic roles & 50–950 ramp

primary
#8156F2
secondary
#DEEDB7
accent
#E203A5
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C17
muted
#807D85

Preview Lab

Preview with #8156F2

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

Preview Lab → · Contrast checker → · Palette generator →

#8156F2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva