#8A61DB#8A61DB

#8A61DB is a mid, vivid violet. Relative luminance 0.191; OKLCH L 59.4% C 0.179 H 296.0°. Best body text is #000000 at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#8A61DB
RGBrgb(138, 97, 219)
HSLhsl(260, 63%, 62%)
HSVhsv(260, 56%, 86%)
CMYKcmyk(37%, 55.7%, 0%, 14.1%)
CIE-LABlab(50.77, 43.08, -56.87)
CIE-LCHlch(50.77, 71.34, 307.14°)
OKLaboklab(59.36% 0.0786 -0.1613)
OKLCHoklch(59.36% 0.179 296)
XYZxyz(27.5388, 19.0666, 69.2334)
Luminance0.1907 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A61DB #B2DB61
analogous
#6175DB #8A61DB #C761DB
triadic
#8A61DB #DB8A61 #61DB8A
tetradic
#8A61DB #DB6175 #B2DB61 #61DBC7
square
#8A61DB #DB6175 #B2DB61 #61DBC7
split-complementary
#8A61DB #DBC761 #75DB61
monochromatic
#4D249E #652FD0 #8A61DB #AF93E6 #D4C5F2

Accessibility & contrast

On white

4.36
#8A61DB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.81
#8A61DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A61DB
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A61DB#FFFFFF#000000##000000
##8A61DB1.004.364.814.81
#FFFFFF4.361.0021.0021.00
#0000004.8121.001.001.00
##0000004.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#267ADF
Deuteranopia (green-blind)
#3477D8
Tritanopia (blue-blind)
#777A95
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #8a61db;
/* rgb */ color: rgb(138, 97, 219);
/* oklch */ color: oklch(59.4% 0.179 296.0);
Tailwind
colors: {
  custom: {
    50: '#b18fe7',
    500: '#8a61db',
    950: '#000000',
  },
}
SCSS
$custom: #8a61db;
$custom-light: #b18fe7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a61db",
  "rgb": {
    "r": 138,
    "g": 97,
    "b": 219
  },
  "hsl": {
    "h": 260.164,
    "s": 62.887,
    "l": 61.961
  },
  "oklch": {
    "l": 0.59361,
    "c": 0.17948,
    "h": 296
  },
  "luminance": 0.19067
}

Semantic roles & 50–950 ramp

primary
#8A61DB
secondary
#D3E2B5
accent
#CB1B90
background
#FBF8FE
surface
#F6F0FC
border
#D0CBD5
text
#110C16
muted
#807D84

Preview Lab

Preview with #8A61DB

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

Preview Lab → · Contrast checker → · Palette generator →

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