#8151CF#8151CF

#8151CF is a mid, vivid violet. Relative luminance 0.151; OKLCH L 55.2% C 0.187 H 297.5°. Best body text is #FFFFFF at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#8151CF
RGBrgb(129, 81, 207)
HSLhsl(263, 57%, 56%)
HSVhsv(263, 61%, 81%)
CMYKcmyk(37.7%, 60.9%, 0%, 18.8%)
CIE-LABlab(45.71, 46.73, -58.20)
CIE-LCHlch(45.71, 74.64, 308.76°)
OKLaboklab(55.2% 0.0861 -0.1655)
OKLCHoklch(55.2% 0.187 297.5)
XYZxyz(23.2553, 15.0566, 60.7004)
Luminance0.1506 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8151CF #9FCF51
analogous
#5160CF #8151CF #C051CF
triadic
#8151CF #CF8151 #51CF81
tetradic
#8151CF #CF5160 #9FCF51 #51CFC0
square
#8151CF #CF5160 #9FCF51 #51CFC0
split-complementary
#8151CF #CFC051 #60CF51
monochromatic
#482482 #6231B2 #8151CF #A481DC #C6B1E9

Accessibility & contrast

On white

5.24
#8151CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#8151CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8151CF
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8151CF#FFFFFF#000000##FFFFFF
##8151CF1.005.244.015.24
#FFFFFF5.241.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DD3
Deuteranopia (green-blind)
#186BCC
Tritanopia (blue-blind)
#6F6D88
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #8151cf;
/* rgb */ color: rgb(129, 81, 207);
/* oklch */ color: oklch(55.2% 0.187 297.5);
Tailwind
colors: {
  custom: {
    50: '#ab84de',
    500: '#8151cf',
    950: '#000000',
  },
}
SCSS
$custom: #8151cf;
$custom-light: #ab84de;
$custom-dark: #000000;
JSON
{
  "hex": "#8151cf",
  "rgb": {
    "r": 129,
    "g": 81,
    "b": 207
  },
  "hsl": {
    "h": 262.857,
    "s": 56.757,
    "l": 56.471
  },
  "oklch": {
    "l": 0.55198,
    "c": 0.18659,
    "h": 297.5
  },
  "luminance": 0.15057
}

Semantic roles & 50–950 ramp

primary
#8151CF
secondary
#C4D8A4
accent
#E048A6
background
#FAF8FD
surface
#F5EFFB
border
#CFCAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #8151CF

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

Preview Lab → · Contrast checker → · Palette generator →

#8151CF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva