#8F51D2#8F51D2

#8F51D2 is a mid, vivid violet. Relative luminance 0.164; OKLCH L 56.9% C 0.192 H 302.9°. Best body text is #FFFFFF at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#8F51D2
RGBrgb(143, 81, 210)
HSLhsl(269, 59%, 57%)
HSVhsv(269, 61%, 82%)
CMYKcmyk(31.9%, 61.4%, 0%, 17.6%)
CIE-LABlab(47.47, 50.60, -57.02)
CIE-LCHlch(47.47, 76.23, 311.59°)
OKLaboklab(56.89% 0.1044 -0.1616)
OKLCHoklch(56.89% 0.192 302.9)
XYZxyz(25.9003, 16.3776, 62.7570)
Luminance0.1638 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F51D2 #94D251
analogous
#5154D2 #8F51D2 #CF51D2
triadic
#8F51D2 #D28F51 #51D28F
tetradic
#8F51D2 #D25154 #94D251 #51D2CF
square
#8F51D2 #D25154 #94D251 #51D2CF
split-complementary
#8F51D2 #D2CF51 #54D251
monochromatic
#522386 #702FB7 #8F51D2 #AE82DF #CEB2EB

Accessibility & contrast

On white

4.91
#8F51D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#8F51D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F51D2
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F51D2#FFFFFF#000000##FFFFFF
##8F51D21.004.914.284.91
#FFFFFF4.911.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FD6
Deuteranopia (green-blind)
#2C70CF
Tritanopia (blue-blind)
#826C8A
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #8f51d2;
/* rgb */ color: rgb(143, 81, 210);
/* oklch */ color: oklch(56.9% 0.192 302.9);
Tailwind
colors: {
  custom: {
    50: '#b485e0',
    500: '#8f51d2',
    950: '#000000',
  },
}
SCSS
$custom: #8f51d2;
$custom-light: #b485e0;
$custom-dark: #000000;
JSON
{
  "hex": "#8f51d2",
  "rgb": {
    "r": 143,
    "g": 81,
    "b": 210
  },
  "hsl": {
    "h": 268.837,
    "s": 58.904,
    "l": 57.059
  },
  "oklch": {
    "l": 0.56889,
    "c": 0.19242,
    "h": 302.9
  },
  "luminance": 0.16378
}

Semantic roles & 50–950 ramp

primary
#8F51D2
secondary
#C0DAA5
accent
#E24697
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #8F51D2

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

Preview Lab → · Contrast checker → · Palette generator →

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