#8D51F2#8D51F2

#8D51F2 is a mid, highly saturated violet. Relative luminance 0.180; OKLCH L 59.0% C 0.228 H 295.7°. Best body text is #000000 at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#8D51F2
RGBrgb(141, 81, 242)
HSLhsl(262, 86%, 63%)
HSVhsv(262, 67%, 95%)
CMYKcmyk(41.7%, 66.5%, 0%, 5.1%)
CIE-LABlab(49.44, 58.15, -71.95)
CIE-LCHlch(49.44, 92.51, 308.95°)
OKLaboklab(58.96% 0.0988 -0.2056)
OKLCHoklch(58.96% 0.228 295.7)
XYZxyz(29.9497, 17.9577, 85.8754)
Luminance0.1796 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D51F2 #B6F251
analogous
#5165F2 #8D51F2 #DD51F2
triadic
#8D51F2 #F28D51 #51F28D
tetradic
#8D51F2 #F25165 #B6F251 #51F2DD
square
#8D51F2 #F25165 #B6F251 #51F2DD
split-complementary
#8D51F2 #F2DD51 #65F251
monochromatic
#4E0EBB #6818EE #8D51F2 #B28AF6 #D8C3FB

Accessibility & contrast

On white

4.57
#8D51F2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.59
#8D51F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8D51F2
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D51F2#FFFFFF#000000##000000
##8D51F21.004.574.594.59
#FFFFFF4.571.0021.0021.00
#0000004.5921.001.001.00
##0000004.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#0077F7
Deuteranopia (green-blind)
#0073EF
Tritanopia (blue-blind)
#72789B
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #8d51f2;
/* rgb */ color: rgb(141, 81, 242);
/* oklch */ color: oklch(59.0% 0.228 295.7);
Tailwind
colors: {
  custom: {
    50: '#b586f7',
    500: '#8d51f2',
    950: '#000000',
  },
}
SCSS
$custom: #8d51f2;
$custom-light: #b586f7;
$custom-dark: #000000;
JSON
{
  "hex": "#8d51f2",
  "rgb": {
    "r": 141,
    "g": 81,
    "b": 242
  },
  "hsl": {
    "h": 262.36,
    "s": 86.096,
    "l": 63.333
  },
  "oklch": {
    "l": 0.58962,
    "c": 0.22808,
    "h": 295.7
  },
  "luminance": 0.17958
}

Semantic roles & 50–950 ramp

primary
#8D51F2
secondary
#D7ECB3
accent
#E3038F
background
#FBF8FF
surface
#F7F0FF
border
#D0CBD7
text
#120B17
muted
#817C85

Preview Lab

Preview with #8D51F2

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

Preview Lab → · Contrast checker → · Palette generator →

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