#8F5CF8#8F5CF8

#8F5CF8 is a mid, highly saturated violet. Relative luminance 0.203; OKLCH L 61.1% C 0.221 H 293.9°. Best body text is #000000 at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#8F5CF8
RGBrgb(143, 92, 248)
HSLhsl(260, 92%, 67%)
HSVhsv(260, 63%, 97%)
CMYKcmyk(42.3%, 62.9%, 0%, 2.7%)
CIE-LABlab(52.14, 54.46, -70.91)
CIE-LCHlch(52.14, 89.41, 307.52°)
OKLaboklab(61.09% 0.0896 -0.2025)
OKLCHoklch(61.09% 0.221 293.9)
XYZxyz(32.0935, 20.2704, 91.0104)
Luminance0.2027 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F5CF8 #C5F85C
analogous
#5C77F8 #8F5CF8 #DD5CF8
triadic
#8F5CF8 #F88F5C #5CF88F
tetradic
#8F5CF8 #F85C77 #C5F85C #5CF8DD
square
#8F5CF8 #F85C77 #C5F85C #5CF8DD
split-complementary
#8F5CF8 #F8DD5C #77F85C
monochromatic
#4A09D1 #6721F5 #8F5CF8 #B797FB #E0D1FD

Accessibility & contrast

On white

4.15
#8F5CF8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.05
#8F5CF8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8F5CF8
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F5CF8#FFFFFF#000000##000000
##8F5CF81.004.155.055.05
#FFFFFF4.151.0021.0021.00
#0000005.0521.001.001.00
##0000005.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#007EFD
Deuteranopia (green-blind)
#007AF5
Tritanopia (blue-blind)
#7280A2
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #8f5cf8;
/* rgb */ color: rgb(143, 92, 248);
/* oklch */ color: oklch(61.1% 0.221 293.9);
Tailwind
colors: {
  custom: {
    50: '#b78dfb',
    500: '#8f5cf8',
    950: '#000000',
  },
}
SCSS
$custom: #8f5cf8;
$custom-light: #b78dfb;
$custom-dark: #000000;
JSON
{
  "hex": "#8f5cf8",
  "rgb": {
    "r": 143,
    "g": 92,
    "b": 248
  },
  "hsl": {
    "h": 259.615,
    "s": 91.765,
    "l": 66.667
  },
  "oklch": {
    "l": 0.61088,
    "c": 0.22141,
    "h": 293.9
  },
  "luminance": 0.20271
}

Semantic roles & 50–950 ramp

primary
#8F5CF8
secondary
#E1F1BF
accent
#E6009A
background
#FBF8FF
surface
#F7F0FF
border
#D0CBD7
text
#120C18
muted
#817D86

Preview Lab

Preview with #8F5CF8

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

Preview Lab → · Contrast checker → · Palette generator →

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