#8F5CEA#8F5CEA

#8F5CEA is a mid, highly saturated violet. Relative luminance 0.194; OKLCH L 60.1% C 0.205 H 296.2°. Best body text is #000000 at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#8F5CEA
RGBrgb(143, 92, 234)
HSLhsl(262, 77%, 64%)
HSVhsv(262, 61%, 92%)
CMYKcmyk(38.9%, 60.7%, 0%, 8.2%)
CIE-LABlab(51.19, 50.82, -64.62)
CIE-LCHlch(51.19, 82.21, 308.19°)
OKLaboklab(60.1% 0.0906 -0.184)
OKLCHoklch(60.1% 0.205 296.2)
XYZxyz(30.0023, 19.4339, 79.9964)
Luminance0.1943 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F5CEA #B7EA5C
analogous
#5C70EA #8F5CEA #D65CEA
triadic
#8F5CEA #EA8F5C #5CEA8F
tetradic
#8F5CEA #EA5C70 #B7EA5C #5CEAD6
square
#8F5CEA #EA5C70 #B7EA5C #5CEAD6
split-complementary
#8F5CEA #EAD65C #70EA5C
monochromatic
#5017B4 #6A26E3 #8F5CEA #B492F1 #DAC8F8

Accessibility & contrast

On white

4.30
#8F5CEA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.89
#8F5CEA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8F5CEA
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F5CEA#FFFFFF#000000##000000
##8F5CEA1.004.304.894.89
#FFFFFF4.301.0021.0021.00
#0000004.8921.001.001.00
##0000004.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#007BEF
Deuteranopia (green-blind)
#1178E7
Tritanopia (blue-blind)
#797B9A
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #8f5cea;
/* rgb */ color: rgb(143, 92, 234);
/* oklch */ color: oklch(60.1% 0.205 296.2);
Tailwind
colors: {
  custom: {
    50: '#b58cf2',
    500: '#8f5cea',
    950: '#000000',
  },
}
SCSS
$custom: #8f5cea;
$custom-light: #b58cf2;
$custom-dark: #000000;
JSON
{
  "hex": "#8f5cea",
  "rgb": {
    "r": 143,
    "g": 92,
    "b": 234
  },
  "hsl": {
    "h": 261.549,
    "s": 77.174,
    "l": 63.922
  },
  "oklch": {
    "l": 0.60097,
    "c": 0.20507,
    "h": 296.2
  },
  "luminance": 0.19434
}

Semantic roles & 50–950 ramp

primary
#8F5CEA
secondary
#D8EAB8
accent
#D90C90
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#120C17
muted
#817D85

Preview Lab

Preview with #8F5CEA

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

Preview Lab → · Contrast checker → · Palette generator →

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