#8A5FDE#8A5FDE

#8A5FDE is a mid, vivid violet. Relative luminance 0.189; OKLCH L 59.2% C 0.186 H 295.8°. Best body text is #000000 at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#8A5FDE
RGBrgb(138, 95, 222)
HSLhsl(260, 66%, 62%)
HSVhsv(260, 57%, 87%)
CMYKcmyk(37.8%, 57.2%, 0%, 12.9%)
CIE-LABlab(50.52, 44.98, -58.96)
CIE-LCHlch(50.52, 74.15, 307.34°)
OKLaboklab(59.24% 0.081 -0.1675)
OKLCHoklch(59.24% 0.186 295.8)
XYZxyz(27.7549, 18.8611, 71.2713)
Luminance0.1886 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5FDE #B3DE5F
analogous
#5F74DE #8A5FDE #CA5FDE
triadic
#8A5FDE #DE8A5F #5FDE8A
tetradic
#8A5FDE #DE5F74 #B3DE5F #5FDECA
square
#8A5FDE #DE5F74 #B3DE5F #5FDECA
split-complementary
#8A5FDE #DECA5F #74DE5F
monochromatic
#4D21A1 #652CD4 #8A5FDE #AF92E8 #D4C4F3

Accessibility & contrast

On white

4.40
#8A5FDE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.77
#8A5FDE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5FDE
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5FDE#FFFFFF#000000##000000
##8A5FDE1.004.404.774.77
#FFFFFF4.401.0021.0021.00
#0000004.7721.001.001.00
##0000004.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#1979E2
Deuteranopia (green-blind)
#2C76DB
Tritanopia (blue-blind)
#767A95
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #8a5fde;
/* rgb */ color: rgb(138, 95, 222);
/* oklch */ color: oklch(59.2% 0.186 295.8);
Tailwind
colors: {
  custom: {
    50: '#b18ee9',
    500: '#8a5fde',
    950: '#000000',
  },
}
SCSS
$custom: #8a5fde;
$custom-light: #b18ee9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5fde",
  "rgb": {
    "r": 138,
    "g": 95,
    "b": 222
  },
  "hsl": {
    "h": 260.315,
    "s": 65.803,
    "l": 62.157
  },
  "oklch": {
    "l": 0.59244,
    "c": 0.18605,
    "h": 295.8
  },
  "luminance": 0.18862
}

Semantic roles & 50–950 ramp

primary
#8A5FDE
secondary
#D4E4B5
accent
#CE1890
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C16
muted
#807D84

Preview Lab

Preview with #8A5FDE

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

Preview Lab → · Contrast checker → · Palette generator →

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