#8F5EF4#8F5EF4

#8F5EF4 is a mid, highly saturated violet. Relative luminance 0.204; OKLCH L 61.1% C 0.214 H 294.2°. Best body text is #000000 at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#8F5EF4
RGBrgb(143, 94, 244)
HSLhsl(260, 87%, 66%)
HSVhsv(260, 61%, 96%)
CMYKcmyk(41.4%, 61.5%, 0%, 4.3%)
CIE-LABlab(52.26, 52.36, -68.49)
CIE-LCHlch(52.26, 86.21, 307.40°)
OKLaboklab(61.09% 0.0878 -0.1954)
OKLCHoklch(61.09% 0.214 294.2)
XYZxyz(31.6552, 20.3759, 87.8355)
Luminance0.2038 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F5EF4 #C3F45E
analogous
#5E78F4 #8F5EF4 #DA5EF4
triadic
#8F5EF4 #F48F5E #5EF48F
tetradic
#8F5EF4 #F45E78 #C3F45E #5EF4DA
square
#8F5EF4 #F45E78 #C3F45E #5EF4DA
split-complementary
#8F5EF4 #F4DA5E #78F45E
monochromatic
#4B0ECA #6725F0 #8F5EF4 #B797F8 #DFD1FC

Accessibility & contrast

On white

4.14
#8F5EF4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.08
#8F5EF4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8F5EF4
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F5EF4#FFFFFF#000000##000000
##8F5EF41.004.145.085.08
#FFFFFF4.141.0021.0021.00
#0000005.0821.001.001.00
##0000005.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#007EF9
Deuteranopia (green-blind)
#007AF1
Tritanopia (blue-blind)
#7480A0
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #8f5ef4;
/* rgb */ color: rgb(143, 94, 244);
/* oklch */ color: oklch(61.1% 0.214 294.2);
Tailwind
colors: {
  custom: {
    50: '#b68ef9',
    500: '#8f5ef4',
    950: '#000000',
  },
}
SCSS
$custom: #8f5ef4;
$custom-light: #b68ef9;
$custom-dark: #000000;
JSON
{
  "hex": "#8f5ef4",
  "rgb": {
    "r": 143,
    "g": 94,
    "b": 244
  },
  "hsl": {
    "h": 259.6,
    "s": 87.209,
    "l": 66.275
  },
  "oklch": {
    "l": 0.61086,
    "c": 0.21418,
    "h": 294.2
  },
  "luminance": 0.20377
}

Semantic roles & 50–950 ramp

primary
#8F5EF4
secondary
#DFEFBE
accent
#E4029A
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#120C17
muted
#817D85

Preview Lab

Preview with #8F5EF4

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

Preview Lab → · Contrast checker → · Palette generator →

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