#8151CB#8151CB

#8151CB is a mid, vivid violet. Relative luminance 0.149; OKLCH L 54.9% C 0.182 H 298.3°. Best body text is #FFFFFF at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#8151CB
RGBrgb(129, 81, 203)
HSLhsl(264, 54%, 56%)
HSVhsv(264, 60%, 80%)
CMYKcmyk(36.5%, 60.1%, 0%, 20.4%)
CIE-LABlab(45.45, 45.69, -56.33)
CIE-LCHlch(45.45, 72.53, 309.05°)
OKLaboklab(54.92% 0.0863 -0.16)
OKLCHoklch(54.92% 0.182 298.3)
XYZxyz(22.7725, 14.8635, 58.1575)
Luminance0.1486 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8151CB #9BCB51
analogous
#515ECB #8151CB #BE51CB
triadic
#8151CB #CB8151 #51CB81
tetradic
#8151CB #CB515E #9BCB51 #51CBBE
square
#8151CB #CB515E #9BCB51 #51CBBE
split-complementary
#8151CB #CBBE51 #5ECB51
monochromatic
#48257C #6333AC #8151CB #A380D9 #C5AFE7

Accessibility & contrast

On white

5.29
#8151CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#8151CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8151CB
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8151CB#FFFFFF#000000##FFFFFF
##8151CB1.005.293.975.29
#FFFFFF5.291.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CCF
Deuteranopia (green-blind)
#216AC8
Tritanopia (blue-blind)
#706B86
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #8151cb;
/* rgb */ color: rgb(129, 81, 203);
/* oklch */ color: oklch(54.9% 0.182 298.3);
Tailwind
colors: {
  custom: {
    50: '#aa84dc',
    500: '#8151cb',
    950: '#000000',
  },
}
SCSS
$custom: #8151cb;
$custom-light: #aa84dc;
$custom-dark: #000000;
JSON
{
  "hex": "#8151cb",
  "rgb": {
    "r": 129,
    "g": 81,
    "b": 203
  },
  "hsl": {
    "h": 263.607,
    "s": 53.982,
    "l": 55.686
  },
  "oklch": {
    "l": 0.54921,
    "c": 0.1818,
    "h": 298.3
  },
  "luminance": 0.14864
}

Semantic roles & 50–950 ramp

primary
#8151CB
secondary
#C1D5A3
accent
#DD4AA4
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #8151CB

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

Preview Lab → · Contrast checker → · Palette generator →

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