#8B51F2#8B51F2

#8B51F2 is a mid, highly saturated violet. Relative luminance 0.178; OKLCH L 58.8% C 0.228 H 294.9°. Best body text is #FFFFFF at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#8B51F2
RGBrgb(139, 81, 242)
HSLhsl(262, 86%, 63%)
HSVhsv(262, 67%, 95%)
CMYKcmyk(42.6%, 66.5%, 0%, 5.1%)
CIE-LABlab(49.23, 57.78, -72.30)
CIE-LCHlch(49.23, 92.56, 308.63°)
OKLaboklab(58.76% 0.0961 -0.2067)
OKLCHoklch(58.76% 0.228 294.9)
XYZxyz(29.6126, 17.7839, 85.8596)
Luminance0.1779 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B51F2 #B8F251
analogous
#5167F2 #8B51F2 #DB51F2
triadic
#8B51F2 #F28B51 #51F28B
tetradic
#8B51F2 #F25167 #B8F251 #51F2DB
square
#8B51F2 #F25167 #B8F251 #51F2DB
split-complementary
#8B51F2 #F2DB51 #67F251
monochromatic
#4C0EBB #6518EE #8B51F2 #B18AF6 #D7C3FB

Accessibility & contrast

On white

4.61
#8B51F2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.56
#8B51F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #8B51F2
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B51F2#FFFFFF#000000##FFFFFF
##8B51F21.004.614.564.61
#FFFFFF4.611.0021.001.00
#0000004.5621.001.0021.00
##FFFFFF4.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0076F7
Deuteranopia (green-blind)
#0072EF
Tritanopia (blue-blind)
#6F789B
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #8b51f2;
/* rgb */ color: rgb(139, 81, 242);
/* oklch */ color: oklch(58.8% 0.228 294.9);
Tailwind
colors: {
  custom: {
    50: '#b485f7',
    500: '#8b51f2',
    950: '#000000',
  },
}
SCSS
$custom: #8b51f2;
$custom-light: #b485f7;
$custom-dark: #000000;
JSON
{
  "hex": "#8b51f2",
  "rgb": {
    "r": 139,
    "g": 81,
    "b": 242
  },
  "hsl": {
    "h": 261.615,
    "s": 86.096,
    "l": 63.333
  },
  "oklch": {
    "l": 0.58762,
    "c": 0.22793,
    "h": 294.9
  },
  "luminance": 0.17785
}

Semantic roles & 50–950 ramp

primary
#8B51F2
secondary
#D7ECB3
accent
#E30392
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#120B17
muted
#817C85

Preview Lab

Preview with #8B51F2

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

Preview Lab → · Contrast checker → · Palette generator →

#8B51F2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva