#8051F2#8051F2

#8051F2 is a mid, highly saturated violet. Relative luminance 0.169; OKLCH L 57.7% C 0.228 H 290.9°. Best body text is #FFFFFF at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#8051F2
RGBrgb(128, 81, 242)
HSLhsl(258, 86%, 63%)
HSVhsv(258, 67%, 95%)
CMYKcmyk(47.1%, 66.5%, 0%, 5.1%)
CIE-LABlab(48.11, 55.81, -74.17)
CIE-LCHlch(48.11, 92.83, 306.96°)
OKLaboklab(57.7% 0.0813 -0.2125)
OKLCHoklch(57.7% 0.228 290.9)
XYZxyz(27.8670, 16.8838, 85.7778)
Luminance0.1689 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8051F2 #C3F251
analogous
#5172F2 #8051F2 #D151F2
triadic
#8051F2 #F28051 #51F280
tetradic
#8051F2 #F25172 #C3F251 #51F2D1
square
#8051F2 #F25172 #C3F251 #51F2D1
split-complementary
#8051F2 #F2D151 #72F251
monochromatic
#400EBB #5618EE #8051F2 #AA8AF6 #D3C3FB

Accessibility & contrast

On white

4.80
#8051F2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.38
#8051F2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8051F2
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8051F2#FFFFFF#000000##FFFFFF
##8051F21.004.804.384.80
#FFFFFF4.801.0021.001.00
#0000004.3821.001.0021.00
##FFFFFF4.801.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8051f2;
/* rgb */ color: rgb(128, 81, 242);
/* oklch */ color: oklch(57.7% 0.228 290.9);
Tailwind
colors: {
  custom: {
    50: '#ae85f7',
    500: '#8051f2',
    950: '#000000',
  },
}
SCSS
$custom: #8051f2;
$custom-light: #ae85f7;
$custom-dark: #000000;
JSON
{
  "hex": "#8051f2",
  "rgb": {
    "r": 128,
    "g": 81,
    "b": 242
  },
  "hsl": {
    "h": 257.516,
    "s": 86.096,
    "l": 63.333
  },
  "oklch": {
    "l": 0.57699,
    "c": 0.22756,
    "h": 290.9
  },
  "luminance": 0.16885
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8051F2

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

Preview Lab → · Contrast checker → · Palette generator →

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