#8A4CE3#8A4CE3

#8A4CE3 is a mid, highly saturated violet. Relative luminance 0.161; OKLCH L 56.9% C 0.217 H 297.9°. Best body text is #FFFFFF at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#8A4CE3
RGBrgb(138, 76, 227)
HSLhsl(265, 73%, 59%)
HSVhsv(265, 67%, 89%)
CMYKcmyk(39.2%, 66.5%, 0%, 11%)
CIE-LABlab(47.13, 56.28, -67.28)
CIE-LCHlch(47.13, 87.71, 309.92°)
OKLaboklab(56.89% 0.1018 -0.1919)
OKLCHoklch(56.89% 0.217 297.9)
XYZxyz(26.9273, 16.1178, 74.3505)
Luminance0.1612 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4CE3 #A5E34C
analogous
#4C5AE3 #8A4CE3 #D64CE3
triadic
#8A4CE3 #E38A4C #4CE38A
tetradic
#8A4CE3 #E34C5A #A5E34C #4CE3D6
square
#8A4CE3 #E34C5A #A5E34C #4CE3D6
split-complementary
#8A4CE3 #E3D64C #5AE34C
monochromatic
#4F189C #6921D1 #8A4CE3 #AD81EB #CFB6F4

Accessibility & contrast

On white

4.97
#8A4CE3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#8A4CE3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4CE3
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4CE3#FFFFFF#000000##FFFFFF
##8A4CE31.004.974.224.97
#FFFFFF4.971.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070E8
Deuteranopia (green-blind)
#006EE0
Tritanopia (blue-blind)
#747091
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #8a4ce3;
/* rgb */ color: rgb(138, 76, 227);
/* oklch */ color: oklch(56.9% 0.217 297.9);
Tailwind
colors: {
  custom: {
    50: '#b282ed',
    500: '#8a4ce3',
    950: '#000000',
  },
}
SCSS
$custom: #8a4ce3;
$custom-light: #b282ed;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4ce3",
  "rgb": {
    "r": 138,
    "g": 76,
    "b": 227
  },
  "hsl": {
    "h": 264.636,
    "s": 72.947,
    "l": 59.412
  },
  "oklch": {
    "l": 0.56886,
    "c": 0.21724,
    "h": 297.9
  },
  "luminance": 0.16118
}

Semantic roles & 50–950 ramp

primary
#8A4CE3
secondary
#CBE3A8
accent
#F038A4
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#120B16
muted
#817C84

Preview Lab

Preview with #8A4CE3

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

Preview Lab → · Contrast checker → · Palette generator →

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