#8F57EB#8F57EB

#8F57EB is a mid, highly saturated violet. Relative luminance 0.187; OKLCH L 59.5% C 0.213 H 296.8°. Best body text is #000000 at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#8F57EB
RGBrgb(143, 87, 235)
HSLhsl(263, 79%, 63%)
HSVhsv(263, 63%, 92%)
CMYKcmyk(39.1%, 63%, 0%, 7.8%)
CIE-LABlab(50.28, 53.71, -66.66)
CIE-LCHlch(50.28, 85.60, 308.86°)
OKLaboklab(59.46% 0.096 -0.19)
OKLCHoklch(59.46% 0.213 296.8)
XYZxyz(29.7274, 18.6537, 80.6154)
Luminance0.1865 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F57EB #B3EB57
analogous
#5769EB #8F57EB #D957EB
triadic
#8F57EB #EB8F57 #57EB8F
tetradic
#8F57EB #EB5769 #B3EB57 #57EBD9
square
#8F57EB #EB5769 #B3EB57 #57EBD9
split-complementary
#8F57EB #EBD957 #69EB57
monochromatic
#5115B2 #6B20E4 #8F57EB #B38EF2 #D8C4F8

Accessibility & contrast

On white

4.44
#8F57EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.73
#8F57EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8F57EB
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F57EB#FFFFFF#000000##000000
##8F57EB1.004.444.734.73
#FFFFFF4.441.0021.0021.00
#0000004.7321.001.001.00
##0000004.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#0078F0
Deuteranopia (green-blind)
#0076E8
Tritanopia (blue-blind)
#787999
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #8f57eb;
/* rgb */ color: rgb(143, 87, 235);
/* oklch */ color: oklch(59.5% 0.213 296.8);
Tailwind
colors: {
  custom: {
    50: '#b689f2',
    500: '#8f57eb',
    950: '#000000',
  },
}
SCSS
$custom: #8f57eb;
$custom-light: #b689f2;
$custom-dark: #000000;
JSON
{
  "hex": "#8f57eb",
  "rgb": {
    "r": 143,
    "g": 87,
    "b": 235
  },
  "hsl": {
    "h": 262.703,
    "s": 78.723,
    "l": 63.137
  },
  "oklch": {
    "l": 0.59456,
    "c": 0.21285,
    "h": 296.8
  },
  "luminance": 0.18654
}

Semantic roles & 50–950 ramp

primary
#8F57EB
secondary
#D5E9B4
accent
#DB0A8C
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#120C17
muted
#817D85

Preview Lab

Preview with #8F57EB

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

Preview Lab → · Contrast checker → · Palette generator →

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