#8A46EA#8A46EA

#8A46EA is a mid, highly saturated violet. Relative luminance 0.157; OKLCH L 56.7% C 0.232 H 297.4°. Best body text is #FFFFFF at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#8A46EA
RGBrgb(138, 70, 234)
HSLhsl(265, 80%, 60%)
HSVhsv(265, 70%, 92%)
CMYKcmyk(41%, 70.1%, 0%, 8.2%)
CIE-LABlab(46.61, 60.91, -72.08)
CIE-LCHlch(46.61, 94.37, 310.20°)
OKLaboklab(56.68% 0.1066 -0.206)
OKLCHoklch(56.68% 0.232 297.4)
XYZxyz(27.5188, 15.7236, 79.4110)
Luminance0.1572 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A46EA #A6EA46
analogous
#4654EA #8A46EA #DC46EA
triadic
#8A46EA #EA8A46 #46EA8A
tetradic
#8A46EA #EA4654 #A6EA46 #46EADC
square
#8A46EA #EA4654 #A6EA46 #46EADC
split-complementary
#8A46EA #EADC46 #54EA46
monochromatic
#4E13A3 #6919DA #8A46EA #AD7DF0 #D0B4F6

Accessibility & contrast

On white

5.07
#8A46EA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#8A46EA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A46EA
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A46EA#FFFFFF#000000##FFFFFF
##8A46EA1.005.074.145.07
#FFFFFF5.071.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FEF
Deuteranopia (green-blind)
#006CE7
Tritanopia (blue-blind)
#726F93
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #8a46ea;
/* rgb */ color: rgb(138, 70, 234);
/* oklch */ color: oklch(56.7% 0.232 297.4);
Tailwind
colors: {
  custom: {
    50: '#b37ff2',
    500: '#8a46ea',
    950: '#000000',
  },
}
SCSS
$custom: #8a46ea;
$custom-light: #b37ff2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a46ea",
  "rgb": {
    "r": 138,
    "g": 70,
    "b": 234
  },
  "hsl": {
    "h": 264.878,
    "s": 79.612,
    "l": 59.608
  },
  "oklch": {
    "l": 0.56678,
    "c": 0.23194,
    "h": 297.4
  },
  "luminance": 0.15724
}

Semantic roles & 50–950 ramp

primary
#8A46EA
secondary
#CBE6A6
accent
#F632A5
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#120A17
muted
#817C85

Preview Lab

Preview with #8A46EA

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

Preview Lab → · Contrast checker → · Palette generator →

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