#8A5FDF#8A5FDF

#8A5FDF is a mid, vivid violet. Relative luminance 0.189; OKLCH L 59.3% C 0.187 H 295.6°. Best body text is #000000 at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#8A5FDF
RGBrgb(138, 95, 223)
HSLhsl(260, 67%, 62%)
HSVhsv(260, 57%, 87%)
CMYKcmyk(38.1%, 57.4%, 0%, 12.5%)
CIE-LABlab(50.59, 45.24, -59.42)
CIE-LCHlch(50.59, 74.68, 307.28°)
OKLaboklab(59.31% 0.081 -0.1688)
OKLCHoklch(59.31% 0.187 295.6)
XYZxyz(27.8893, 18.9149, 71.9793)
Luminance0.1892 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5FDF #B4DF5F
analogous
#5F74DF #8A5FDF #CA5FDF
triadic
#8A5FDF #DF8A5F #5FDF8A
tetradic
#8A5FDF #DF5F74 #B4DF5F #5FDFCA
square
#8A5FDF #DF5F74 #B4DF5F #5FDFCA
split-complementary
#8A5FDF #DFCA5F #74DF5F
monochromatic
#4C21A3 #652CD5 #8A5FDF #AF92E9 #D5C5F3

Accessibility & contrast

On white

4.39
#8A5FDF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.78
#8A5FDF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5FDF
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5FDF#FFFFFF#000000##000000
##8A5FDF1.004.394.784.78
#FFFFFF4.391.0021.0021.00
#0000004.7821.001.001.00
##0000004.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#1679E3
Deuteranopia (green-blind)
#2A77DC
Tritanopia (blue-blind)
#757A96
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #8a5fdf;
/* rgb */ color: rgb(138, 95, 223);
/* oklch */ color: oklch(59.3% 0.187 295.6);
Tailwind
colors: {
  custom: {
    50: '#b18eea',
    500: '#8a5fdf',
    950: '#000000',
  },
}
SCSS
$custom: #8a5fdf;
$custom-light: #b18eea;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5fdf",
  "rgb": {
    "r": 138,
    "g": 95,
    "b": 223
  },
  "hsl": {
    "h": 260.156,
    "s": 66.667,
    "l": 62.353
  },
  "oklch": {
    "l": 0.59311,
    "c": 0.18727,
    "h": 295.6
  },
  "luminance": 0.18915
}

Semantic roles & 50–950 ramp

primary
#8A5FDF
secondary
#D5E4B6
accent
#CF1791
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C16
muted
#807D84

Preview Lab

Preview with #8A5FDF

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

Preview Lab → · Contrast checker → · Palette generator →

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