#8A5DBB#8A5DBB

#8A5DBB is a mid, vivid violet. Relative luminance 0.168; OKLCH L 56.7% C 0.146 H 304.3°. Best body text is #FFFFFF at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#8A5DBB
RGBrgb(138, 93, 187)
HSLhsl(269, 41%, 55%)
HSVhsv(269, 50%, 73%)
CMYKcmyk(26.2%, 50.3%, 0%, 26.7%)
CIE-LABlab(48.03, 37.21, -42.88)
CIE-LCHlch(48.03, 56.78, 310.95°)
OKLaboklab(56.74% 0.082 -0.1204)
OKLCHoklch(56.74% 0.146 304.3)
XYZxyz(23.3633, 16.8199, 49.0198)
Luminance0.1682 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5DBB #8EBB5D
analogous
#5D5FBB #8A5DBB #B95DBB
triadic
#8A5DBB #BB8A5D #5DBB8A
tetradic
#8A5DBB #BB5D5F #8EBB5D #5DBBB9
square
#8A5DBB #BB5D5F #8EBB5D #5DBBB9
split-complementary
#8A5DBB #BBB95D #5FBB5D
monochromatic
#4D2F6F #6B419A #8A5DBB #A988CD #C8B3DF

Accessibility & contrast

On white

4.81
#8A5DBB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.36
#8A5DBB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5DBB
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5DBB#FFFFFF#000000##FFFFFF
##8A5DBB1.004.814.364.81
#FFFFFF4.811.0021.001.00
#0000004.3621.001.0021.00
##FFFFFF4.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4171BE
Deuteranopia (green-blind)
#4D72B9
Tritanopia (blue-blind)
#826E83
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #8a5dbb;
/* rgb */ color: rgb(138, 93, 187);
/* oklch */ color: oklch(56.7% 0.146 304.3);
Tailwind
colors: {
  custom: {
    50: '#ae8cd0',
    500: '#8a5dbb',
    950: '#000000',
  },
}
SCSS
$custom: #8a5dbb;
$custom-light: #ae8cd0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5dbb",
  "rgb": {
    "r": 138,
    "g": 93,
    "b": 187
  },
  "hsl": {
    "h": 268.723,
    "s": 40.87,
    "l": 54.902
  },
  "oklch": {
    "l": 0.5674,
    "c": 0.14565,
    "h": 304.3
  },
  "luminance": 0.1682
}

Semantic roles & 50–950 ramp

primary
#8A5DBB
secondary
#BBCEA6
accent
#D15796
background
#FAF8FC
surface
#F5F0F9
border
#CFCBD2
text
#110C14
muted
#807D82

Preview Lab

Preview with #8A5DBB

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

Preview Lab → · Contrast checker → · Palette generator →

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