#8C5FF7#8C5FF7

#8C5FF7 is a mid, highly saturated violet. Relative luminance 0.205; OKLCH L 61.2% C 0.216 H 292.5°. Best body text is #000000 at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#8C5FF7
RGBrgb(140, 95, 247)
HSLhsl(258, 90%, 67%)
HSVhsv(258, 62%, 97%)
CMYKcmyk(43.3%, 61.5%, 0%, 3.1%)
CIE-LABlab(52.37, 52.02, -70.00)
CIE-LCHlch(52.37, 87.21, 306.62°)
OKLaboklab(61.16% 0.0826 -0.1999)
OKLCHoklch(61.16% 0.216 292.5)
XYZxyz(31.6913, 20.4743, 90.2598)
Luminance0.2047 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C5FF7 #CAF75F
analogous
#5F7EF7 #8C5FF7 #D85FF7
triadic
#8C5FF7 #F78C5F #5FF78C
tetradic
#8C5FF7 #F75F7E #CAF75F #5FF7D8
square
#8C5FF7 #F75F7E #CAF75F #5FF7D8
split-complementary
#8C5FF7 #F7D85F #7EF75F
monochromatic
#450AD1 #6225F4 #8C5FF7 #B699FA #E0D4FD

Accessibility & contrast

On white

4.12
#8C5FF7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.09
#8C5FF7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8C5FF7
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C5FF7#FFFFFF#000000##000000
##8C5FF71.004.125.095.09
#FFFFFF4.121.0021.0021.00
#0000005.0921.001.001.00
##0000005.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#007FFC
Deuteranopia (green-blind)
#007AF4
Tritanopia (blue-blind)
#6D82A2
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #8c5ff7;
/* rgb */ color: rgb(140, 95, 247);
/* oklch */ color: oklch(61.2% 0.216 292.5);
Tailwind
colors: {
  custom: {
    50: '#b58efb',
    500: '#8c5ff7',
    950: '#000000',
  },
}
SCSS
$custom: #8c5ff7;
$custom-light: #b58efb;
$custom-dark: #000000;
JSON
{
  "hex": "#8c5ff7",
  "rgb": {
    "r": 140,
    "g": 95,
    "b": 247
  },
  "hsl": {
    "h": 257.763,
    "s": 90.476,
    "l": 67.059
  },
  "oklch": {
    "l": 0.61162,
    "c": 0.2163,
    "h": 292.5
  },
  "luminance": 0.20475
}

Semantic roles & 50–950 ramp

primary
#8C5FF7
secondary
#E3F1C1
accent
#E600A2
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#120C17
muted
#817D85

Preview Lab

Preview with #8C5FF7

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

Preview Lab → · Contrast checker → · Palette generator →

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