#8A5FDB#8A5FDB

#8A5FDB is a mid, vivid violet. Relative luminance 0.187; OKLCH L 59.0% C 0.182 H 296.4°. Best body text is #000000 at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#8A5FDB
RGBrgb(138, 95, 219)
HSLhsl(261, 63%, 62%)
HSVhsv(261, 57%, 86%)
CMYKcmyk(37%, 56.6%, 0%, 14.1%)
CIE-LABlab(50.34, 44.19, -57.56)
CIE-LCHlch(50.34, 72.57, 307.52°)
OKLaboklab(59.05% 0.081 -0.1634)
OKLCHoklch(59.05% 0.182 296.4)
XYZxyz(27.3564, 18.7017, 69.1726)
Luminance0.1870 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5FDB #B0DB5F
analogous
#5F72DB #8A5FDB #C85FDB
triadic
#8A5FDB #DB8A5F #5FDB8A
tetradic
#8A5FDB #DB5F72 #B0DB5F #5FDBC8
square
#8A5FDB #DB5F72 #B0DB5F #5FDBC8
split-complementary
#8A5FDB #DBC85F #72DB5F
monochromatic
#4D239C #662ECE #8A5FDB #AF91E6 #D3C3F1

Accessibility & contrast

On white

4.43
#8A5FDB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.74
#8A5FDB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5FDB
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5FDB#FFFFFF#000000##000000
##8A5FDB1.004.434.744.74
#FFFFFF4.431.0021.0021.00
#0000004.7421.001.001.00
##0000004.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#1F78DF
Deuteranopia (green-blind)
#3176D8
Tritanopia (blue-blind)
#777994
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #8a5fdb;
/* rgb */ color: rgb(138, 95, 219);
/* oklch */ color: oklch(59.0% 0.182 296.4);
Tailwind
colors: {
  custom: {
    50: '#b18ee7',
    500: '#8a5fdb',
    950: '#000000',
  },
}
SCSS
$custom: #8a5fdb;
$custom-light: #b18ee7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5fdb",
  "rgb": {
    "r": 138,
    "g": 95,
    "b": 219
  },
  "hsl": {
    "h": 260.806,
    "s": 63.265,
    "l": 61.569
  },
  "oklch": {
    "l": 0.59046,
    "c": 0.18236,
    "h": 296.4
  },
  "luminance": 0.18702
}

Semantic roles & 50–950 ramp

primary
#8A5FDB
secondary
#D2E2B4
accent
#CB1A8E
background
#FBF8FE
surface
#F6F0FC
border
#D0CBD5
text
#110C16
muted
#807D84

Preview Lab

Preview with #8A5FDB

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

Preview Lab → · Contrast checker → · Palette generator →

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