#8F51F2#8F51F2

#8F51F2 is a mid, highly saturated violet. Relative luminance 0.181; OKLCH L 59.2% C 0.228 H 296.4°. Best body text is #000000 at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#8F51F2
RGBrgb(143, 81, 242)
HSLhsl(263, 86%, 63%)
HSVhsv(263, 67%, 95%)
CMYKcmyk(40.9%, 66.5%, 0%, 5.1%)
CIE-LABlab(49.66, 58.52, -71.59)
CIE-LCHlch(49.66, 92.47, 309.26°)
OKLaboklab(59.17% 0.1015 -0.2044)
OKLCHoklch(59.17% 0.228 296.4)
XYZxyz(30.2929, 18.1347, 85.8915)
Luminance0.1814 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F51F2 #B4F251
analogous
#5163F2 #8F51F2 #E051F2
triadic
#8F51F2 #F28F51 #51F28F
tetradic
#8F51F2 #F25163 #B4F251 #51F2E0
square
#8F51F2 #F25163 #B4F251 #51F2E0
split-complementary
#8F51F2 #F2E051 #63F251
monochromatic
#500EBB #6A18EE #8F51F2 #B48AF6 #D8C3FB

Accessibility & contrast

On white

4.54
#8F51F2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.63
#8F51F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8F51F2
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F51F2#FFFFFF#000000##000000
##8F51F21.004.544.634.63
#FFFFFF4.541.0021.0021.00
#0000004.6321.001.001.00
##0000004.6321.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8f51f2;
/* rgb */ color: rgb(143, 81, 242);
/* oklch */ color: oklch(59.2% 0.228 296.4);
Tailwind
colors: {
  custom: {
    50: '#b786f7',
    500: '#8f51f2',
    950: '#000000',
  },
}
SCSS
$custom: #8f51f2;
$custom-light: #b786f7;
$custom-dark: #000000;
JSON
{
  "hex": "#8f51f2",
  "rgb": {
    "r": 143,
    "g": 81,
    "b": 242
  },
  "hsl": {
    "h": 263.106,
    "s": 86.096,
    "l": 63.333
  },
  "oklch": {
    "l": 0.59165,
    "c": 0.22825,
    "h": 296.4
  },
  "luminance": 0.18135
}

Semantic roles & 50–950 ramp

primary
#8F51F2
secondary
#D6ECB3
accent
#E3038C
background
#FBF8FF
surface
#F7F0FF
border
#D0CBD7
text
#120B17
muted
#817C85

Preview Lab

Preview with #8F51F2

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

Preview Lab → · Contrast checker → · Palette generator →

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