#8A5FC4#8A5FC4

#8A5FC4 is a mid, vivid violet. Relative luminance 0.176; OKLCH L 57.6% C 0.154 H 301.4°. Best body text is #FFFFFF at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#8A5FC4
RGBrgb(138, 95, 196)
HSLhsl(266, 46%, 57%)
HSVhsv(266, 52%, 77%)
CMYKcmyk(29.6%, 51.5%, 0%, 23.1%)
CIE-LABlab(48.97, 38.30, -46.59)
CIE-LCHlch(48.97, 60.31, 309.42°)
OKLaboklab(57.6% 0.0801 -0.1312)
OKLCHoklch(57.6% 0.154 301.4)
XYZxyz(24.5350, 17.5731, 54.3132)
Luminance0.1757 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5FC4 #99C45F
analogous
#5F66C4 #8A5FC4 #BD5FC4
triadic
#8A5FC4 #C48A5F #5FC48A
tetradic
#8A5FC4 #C45F66 #99C45F #5FC4BD
square
#8A5FC4 #C45F66 #99C45F #5FC4BD
split-complementary
#8A5FC4 #C4BD5F #66C45F
monochromatic
#4F2D7B #6B3EA8 #8A5FC4 #AB8CD4 #CBB8E5

Accessibility & contrast

On white

4.65
#8A5FC4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.51
#8A5FC4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5FC4
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5FC4#FFFFFF#000000##FFFFFF
##8A5FC41.004.654.514.65
#FFFFFF4.651.0021.001.00
#0000004.5121.001.0021.00
##FFFFFF4.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D74C7
Deuteranopia (green-blind)
#4974C2
Tritanopia (blue-blind)
#7F7288
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #8a5fc4;
/* rgb */ color: rgb(138, 95, 196);
/* oklch */ color: oklch(57.6% 0.154 301.4);
Tailwind
colors: {
  custom: {
    50: '#af8dd6',
    500: '#8a5fc4',
    950: '#000000',
  },
}
SCSS
$custom: #8a5fc4;
$custom-light: #af8dd6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5fc4",
  "rgb": {
    "r": 138,
    "g": 95,
    "b": 196
  },
  "hsl": {
    "h": 265.545,
    "s": 46.119,
    "l": 57.059
  },
  "oklch": {
    "l": 0.57601,
    "c": 0.15372,
    "h": 301.4
  },
  "luminance": 0.17573
}

Semantic roles & 50–950 ramp

primary
#8A5FC4
secondary
#C2D4AB
accent
#D6529E
background
#FBF8FD
surface
#F6F0FA
border
#D0CBD3
text
#110C14
muted
#807D83

Preview Lab

Preview with #8A5FC4

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

Preview Lab → · Contrast checker → · Palette generator →

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