#8A51F2#8A51F2

#8A51F2 is a mid, highly saturated violet. Relative luminance 0.177; OKLCH L 58.7% C 0.228 H 294.6°. Best body text is #FFFFFF at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#8A51F2
RGBrgb(138, 81, 242)
HSLhsl(261, 86%, 63%)
HSVhsv(261, 67%, 95%)
CMYKcmyk(43%, 66.5%, 0%, 5.1%)
CIE-LABlab(49.13, 57.60, -72.48)
CIE-LCHlch(49.13, 92.58, 308.48°)
OKLaboklab(58.66% 0.0948 -0.2072)
OKLCHoklch(58.66% 0.228 294.6)
XYZxyz(29.4464, 17.6982, 85.8518)
Luminance0.1770 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A51F2 #B9F251
analogous
#5168F2 #8A51F2 #DA51F2
triadic
#8A51F2 #F28A51 #51F28A
tetradic
#8A51F2 #F25168 #B9F251 #51F2DA
square
#8A51F2 #F25168 #B9F251 #51F2DA
split-complementary
#8A51F2 #F2DA51 #68F251
monochromatic
#4B0EBB #6418EE #8A51F2 #B08AF6 #D7C3FB

Accessibility & contrast

On white

4.63
#8A51F2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.54
#8A51F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #8A51F2
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A51F2#FFFFFF#000000##FFFFFF
##8A51F21.004.634.544.63
#FFFFFF4.631.0021.001.00
#0000004.5421.001.0021.00
##FFFFFF4.631.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8a51f2;
/* rgb */ color: rgb(138, 81, 242);
/* oklch */ color: oklch(58.7% 0.228 294.6);
Tailwind
colors: {
  custom: {
    50: '#b485f7',
    500: '#8a51f2',
    950: '#000000',
  },
}
SCSS
$custom: #8a51f2;
$custom-light: #b485f7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a51f2",
  "rgb": {
    "r": 138,
    "g": 81,
    "b": 242
  },
  "hsl": {
    "h": 261.242,
    "s": 86.096,
    "l": 63.333
  },
  "oklch": {
    "l": 0.58663,
    "c": 0.22787,
    "h": 294.6
  },
  "luminance": 0.17699
}

Semantic roles & 50–950 ramp

primary
#8A51F2
secondary
#D8ECB3
accent
#E30393
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#120B17
muted
#817C85

Preview Lab

Preview with #8A51F2

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

Preview Lab → · Contrast checker → · Palette generator →

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