#8F5DF5#8F5DF5

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

Color values

HEX#8F5DF5
RGBrgb(143, 93, 245)
HSLhsl(260, 88%, 66%)
HSVhsv(260, 62%, 96%)
CMYKcmyk(41.6%, 62%, 0%, 3.9%)
CIE-LABlab(52.13, 53.15, -69.26)
CIE-LCHlch(52.13, 87.30, 307.50°)
OKLaboklab(61.01% 0.0888 -0.1976)
OKLCHoklch(61.01% 0.217 294.2)
XYZxyz(31.7191, 20.2601, 88.6079)
Luminance0.2026 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F5DF5 #C3F55D
analogous
#5D77F5 #8F5DF5 #DB5DF5
triadic
#8F5DF5 #F58F5D #5DF58F
tetradic
#8F5DF5 #F55D77 #C3F55D #5DF5DB
square
#8F5DF5 #F55D77 #C3F55D #5DF5DB
split-complementary
#8F5DF5 #F5DB5D #77F55D
monochromatic
#4B0DCB #6723F1 #8F5DF5 #B797F9 #DFD0FC

Accessibility & contrast

On white

4.16
#8F5DF5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##8F5DF5#FFFFFF#000000##000000
##8F5DF51.004.165.055.05
#FFFFFF4.161.0021.0021.00
#0000005.0521.001.001.00
##0000005.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#007EFA
Deuteranopia (green-blind)
#007AF2
Tritanopia (blue-blind)
#7480A1
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #8f5df5;
/* rgb */ color: rgb(143, 93, 245);
/* oklch */ color: oklch(61.0% 0.217 294.2);
Tailwind
colors: {
  custom: {
    50: '#b68df9',
    500: '#8f5df5',
    950: '#000000',
  },
}
SCSS
$custom: #8f5df5;
$custom-light: #b68df9;
$custom-dark: #000000;
JSON
{
  "hex": "#8f5df5",
  "rgb": {
    "r": 143,
    "g": 93,
    "b": 245
  },
  "hsl": {
    "h": 259.737,
    "s": 88.372,
    "l": 66.275
  },
  "oklch": {
    "l": 0.61014,
    "c": 0.21664,
    "h": 294.2
  },
  "luminance": 0.20261
}

Semantic roles & 50–950 ramp

primary
#8F5DF5
secondary
#DFF0BE
accent
#E5019A
background
#FBF8FF
surface
#F7F0FF
border
#D0CBD7
text
#120C17
muted
#817D85

Preview Lab

Preview with #8F5DF5

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

Preview Lab → · Contrast checker → · Palette generator →

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