#8A5FD4#8A5FD4

#8A5FD4 is a mid, vivid violet. Relative luminance 0.183; OKLCH L 58.6% C 0.174 H 297.8°. Best body text is #000000 at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#8A5FD4
RGBrgb(138, 95, 212)
HSLhsl(262, 58%, 60%)
HSVhsv(262, 55%, 83%)
CMYKcmyk(34.9%, 55.2%, 0%, 16.9%)
CIE-LABlab(49.91, 42.37, -54.27)
CIE-LCHlch(49.91, 68.85, 307.98°)
OKLaboklab(58.59% 0.0809 -0.1537)
OKLCHoklch(58.59% 0.174 297.8)
XYZxyz(26.4542, 18.3408, 64.4210)
Luminance0.1834 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5FD4 #A9D45F
analogous
#5F6FD4 #8A5FD4 #C45FD4
triadic
#8A5FD4 #D48A5F #5FD48A
tetradic
#8A5FD4 #D45F6F #A9D45F #5FD4C4
square
#8A5FD4 #D45F6F #A9D45F #5FD4C4
split-complementary
#8A5FD4 #D4C45F #6FD45F
monochromatic
#4E2791 #6834C2 #8A5FD4 #AD8FE1 #D1BFEE

Accessibility & contrast

On white

4.50
#8A5FD4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.67
#8A5FD4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5FD4
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5FD4#FFFFFF#000000##000000
##8A5FD41.004.504.674.67
#FFFFFF4.501.0021.0021.00
#0000004.6721.001.001.00
##0000004.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#2B77D8
Deuteranopia (green-blind)
#3A75D1
Tritanopia (blue-blind)
#797790
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #8a5fd4;
/* rgb */ color: rgb(138, 95, 212);
/* oklch */ color: oklch(58.6% 0.174 297.8);
Tailwind
colors: {
  custom: {
    50: '#b08ee2',
    500: '#8a5fd4',
    950: '#000000',
  },
}
SCSS
$custom: #8a5fd4;
$custom-light: #b08ee2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5fd4",
  "rgb": {
    "r": 138,
    "g": 95,
    "b": 212
  },
  "hsl": {
    "h": 262.051,
    "s": 57.635,
    "l": 60.196
  },
  "oklch": {
    "l": 0.58592,
    "c": 0.17371,
    "h": 297.8
  },
  "luminance": 0.18341
}

Semantic roles & 50–950 ramp

primary
#8A5FD4
secondary
#CDDEB1
accent
#C52089
background
#FBF8FD
surface
#F6F0FB
border
#D0CBD4
text
#110C15
muted
#807D83

Preview Lab

Preview with #8A5FD4

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

Preview Lab → · Contrast checker → · Palette generator →

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