#8A5FCB#8A5FCB

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

Color values

HEX#8A5FCB
RGBrgb(138, 95, 203)
HSLhsl(264, 51%, 58%)
HSVhsv(264, 53%, 80%)
CMYKcmyk(32%, 53.2%, 0%, 20.4%)
CIE-LABlab(49.37, 40.07, -49.98)
CIE-LCHlch(49.37, 64.05, 308.72°)
OKLaboklab(58.03% 0.0806 -0.1411)
OKLCHoklch(58.03% 0.162 299.7)
XYZxyz(25.3504, 17.8993, 58.6077)
Luminance0.1790 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5FCB #A0CB5F
analogous
#5F6ACB #8A5FCB #C05FCB
triadic
#8A5FCB #CB8A5F #5FCB8A
tetradic
#8A5FCB #CB5F6A #A0CB5F #5FCBC0
square
#8A5FCB #CB5F6A #A0CB5F #5FCBC0
split-complementary
#8A5FCB #CBC05F #6ACB5F
monochromatic
#4F2B85 #6A3AB3 #8A5FCB #AC8DDA #CEBBE9

Accessibility & contrast

On white

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

On black

4.58
#8A5FCB on #000000
AA ✓AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##8A5FCB#FFFFFF#000000##FFFFFF
##8A5FCB1.004.594.584.59
#FFFFFF4.591.0021.001.00
#0000004.5821.001.0021.00
##FFFFFF4.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3675CF
Deuteranopia (green-blind)
#4375C8
Tritanopia (blue-blind)
#7D748C
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #8a5fcb;
/* rgb */ color: rgb(138, 95, 203);
/* oklch */ color: oklch(58.0% 0.162 299.7);
Tailwind
colors: {
  custom: {
    50: '#af8edb',
    500: '#8a5fcb',
    950: '#000000',
  },
}
SCSS
$custom: #8a5fcb;
$custom-light: #af8edb;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5fcb",
  "rgb": {
    "r": 138,
    "g": 95,
    "b": 203
  },
  "hsl": {
    "h": 263.889,
    "s": 50.943,
    "l": 58.431
  },
  "oklch": {
    "l": 0.58026,
    "c": 0.16249,
    "h": 299.7
  },
  "luminance": 0.17899
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8A5FCB

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

Preview Lab → · Contrast checker → · Palette generator →

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