#8A5CDE#8A5CDE

#8A5CDE is a mid, vivid violet. Relative luminance 0.183; OKLCH L 58.8% C 0.190 H 296.4°. Best body text is #000000 at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#8A5CDE
RGBrgb(138, 92, 222)
HSLhsl(261, 66%, 62%)
HSVhsv(261, 59%, 87%)
CMYKcmyk(37.8%, 58.6%, 0%, 12.9%)
CIE-LABlab(49.90, 46.63, -59.97)
CIE-LCHlch(49.90, 75.96, 307.87°)
OKLaboklab(58.78% 0.0846 -0.1704)
OKLCHoklch(58.78% 0.19 296.4)
XYZxyz(27.4898, 18.3310, 71.1830)
Luminance0.1833 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5CDE #B0DE5C
analogous
#5C6FDE #8A5CDE #CB5CDE
triadic
#8A5CDE #DE8A5C #5CDE8A
tetradic
#8A5CDE #DE5C6F #B0DE5C #5CDECB
square
#8A5CDE #DE5C6F #B0DE5C #5CDECB
split-complementary
#8A5CDE #DECB5C #6FDE5C
monochromatic
#4D209F #662BD2 #8A5CDE #AF8FE8 #D3C2F3

Accessibility & contrast

On white

4.50
#8A5CDE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.67
#8A5CDE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5CDE
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5CDE#FFFFFF#000000##000000
##8A5CDE1.004.504.674.67
#FFFFFF4.501.0021.0021.00
#0000004.6721.001.001.00
##0000004.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#0677E2
Deuteranopia (green-blind)
#2675DB
Tritanopia (blue-blind)
#767894
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #8a5cde;
/* rgb */ color: rgb(138, 92, 222);
/* oklch */ color: oklch(58.8% 0.190 296.4);
Tailwind
colors: {
  custom: {
    50: '#b18ce9',
    500: '#8a5cde',
    950: '#000000',
  },
}
SCSS
$custom: #8a5cde;
$custom-light: #b18ce9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5cde",
  "rgb": {
    "r": 138,
    "g": 92,
    "b": 222
  },
  "hsl": {
    "h": 261.231,
    "s": 66.327,
    "l": 61.569
  },
  "oklch": {
    "l": 0.58783,
    "c": 0.19027,
    "h": 296.4
  },
  "luminance": 0.18331
}

Semantic roles & 50–950 ramp

primary
#8A5CDE
secondary
#D2E3B3
accent
#CE178D
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C16
muted
#807D84

Preview Lab

Preview with #8A5CDE

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

Preview Lab → · Contrast checker → · Palette generator →

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