#8A5FCA#8A5FCA

#8A5FCA is a mid, vivid violet. Relative luminance 0.179; OKLCH L 58.0% C 0.161 H 299.9°. Best body text is #FFFFFF at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#8A5FCA
RGBrgb(138, 95, 202)
HSLhsl(264, 50%, 58%)
HSVhsv(264, 53%, 79%)
CMYKcmyk(31.7%, 53%, 0%, 20.8%)
CIE-LABlab(49.32, 39.81, -49.50)
CIE-LCHlch(49.32, 63.52, 308.81°)
OKLaboklab(57.97% 0.0805 -0.1397)
OKLCHoklch(57.97% 0.161 299.9)
XYZxyz(25.2316, 17.8518, 57.9821)
Luminance0.1785 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5FCA #9FCA5F
analogous
#5F69CA #8A5FCA #BF5FCA
triadic
#8A5FCA #CA8A5F #5FCA8A
tetradic
#8A5FCA #CA5F69 #9FCA5F #5FCABF
square
#8A5FCA #CA5F69 #9FCA5F #5FCABF
split-complementary
#8A5FCA #CABF5F #69CA5F
monochromatic
#4F2B83 #6A3BB1 #8A5FCA #AC8DD9 #CDBBE8

Accessibility & contrast

On white

4.59
#8A5FCA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.57
#8A5FCA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5FCA
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5FCA#FFFFFF#000000##FFFFFF
##8A5FCA1.004.594.574.59
#FFFFFF4.591.0021.001.00
#0000004.5721.001.0021.00
##FFFFFF4.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3775CE
Deuteranopia (green-blind)
#4474C7
Tritanopia (blue-blind)
#7D748B
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #8a5fca;
/* rgb */ color: rgb(138, 95, 202);
/* oklch */ color: oklch(58.0% 0.161 299.9);
Tailwind
colors: {
  custom: {
    50: '#af8edb',
    500: '#8a5fca',
    950: '#000000',
  },
}
SCSS
$custom: #8a5fca;
$custom-light: #af8edb;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5fca",
  "rgb": {
    "r": 138,
    "g": 95,
    "b": 202
  },
  "hsl": {
    "h": 264.112,
    "s": 50.235,
    "l": 58.235
  },
  "oklch": {
    "l": 0.57965,
    "c": 0.16125,
    "h": 299.9
  },
  "luminance": 0.17852
}

Semantic roles & 50–950 ramp

primary
#8A5FCA
secondary
#C7D8AD
accent
#DA4EA2
background
#FBF8FD
surface
#F6F0FB
border
#D0CBD4
text
#110C15
muted
#807D83

Preview Lab

Preview with #8A5FCA

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

Preview Lab → · Contrast checker → · Palette generator →

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