#8151F2#8151F2

#8151F2 is a mid, highly saturated violet. Relative luminance 0.170; OKLCH L 57.8% C 0.228 H 291.3°. Best body text is #FFFFFF at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#8151F2
RGBrgb(129, 81, 242)
HSLhsl(258, 86%, 63%)
HSVhsv(258, 67%, 95%)
CMYKcmyk(46.7%, 66.5%, 0%, 5.1%)
CIE-LABlab(48.21, 55.99, -74.01)
CIE-LCHlch(48.21, 92.80, 307.11°)
OKLaboklab(57.79% 0.0827 -0.212)
OKLCHoklch(57.79% 0.228 291.3)
XYZxyz(28.0182, 16.9618, 85.7849)
Luminance0.1696 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8151F2 #C2F251
analogous
#5171F2 #8151F2 #D151F2
triadic
#8151F2 #F28151 #51F281
tetradic
#8151F2 #F25171 #C2F251 #51F2D1
square
#8151F2 #F25171 #C2F251 #51F2D1
split-complementary
#8151F2 #F2D151 #71F251
monochromatic
#410EBB #5818EE #8151F2 #AA8AF6 #D3C3FB

Accessibility & contrast

On white

4.78
#8151F2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.39
#8151F2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8151F2
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8151F2#FFFFFF#000000##FFFFFF
##8151F21.004.784.394.78
#FFFFFF4.781.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0075F7
Deuteranopia (green-blind)
#006FEF
Tritanopia (blue-blind)
#5D799B
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #8151f2;
/* rgb */ color: rgb(129, 81, 242);
/* oklch */ color: oklch(57.8% 0.228 291.3);
Tailwind
colors: {
  custom: {
    50: '#ae85f7',
    500: '#8151f2',
    950: '#000000',
  },
}
SCSS
$custom: #8151f2;
$custom-light: #ae85f7;
$custom-dark: #000000;
JSON
{
  "hex": "#8151f2",
  "rgb": {
    "r": 129,
    "g": 81,
    "b": 242
  },
  "hsl": {
    "h": 257.888,
    "s": 86.096,
    "l": 63.333
  },
  "oklch": {
    "l": 0.57793,
    "c": 0.22756,
    "h": 291.3
  },
  "luminance": 0.16963
}

Semantic roles & 50–950 ramp

primary
#8151F2
secondary
#DBECB3
accent
#E303A0
background
#FBF8FF
surface
#F6EFFF
border
#D0CAD7
text
#110B17
muted
#807C85

Preview Lab

Preview with #8151F2

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

Preview Lab → · Contrast checker → · Palette generator →

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