#8A45EA#8A45EA

#8A45EA is a mid, highly saturated violet. Relative luminance 0.156; OKLCH L 56.6% C 0.233 H 297.5°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#8A45EA
RGBrgb(138, 69, 234)
HSLhsl(265, 80%, 59%)
HSVhsv(265, 71%, 92%)
CMYKcmyk(41%, 70.5%, 0%, 8.2%)
CIE-LABlab(46.44, 61.37, -72.35)
CIE-LCHlch(46.44, 94.87, 310.31°)
OKLaboklab(56.56% 0.1075 -0.2068)
OKLCHoklch(56.56% 0.233 297.5)
XYZxyz(27.4568, 15.5995, 79.3904)
Luminance0.1560 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A45EA #A5EA45
analogous
#4553EA #8A45EA #DD45EA
triadic
#8A45EA #EA8A45 #45EA8A
tetradic
#8A45EA #EA4553 #A5EA45 #45EADD
square
#8A45EA #EA4553 #A5EA45 #45EADD
split-complementary
#8A45EA #EADD45 #53EA45
monochromatic
#4F12A2 #6919D9 #8A45EA #AD7CF0 #CFB3F6

Accessibility & contrast

On white

5.10
#8A45EA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#8A45EA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A45EA
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A45EA#FFFFFF#000000##FFFFFF
##8A45EA1.005.104.125.10
#FFFFFF5.101.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8a45ea;
/* rgb */ color: rgb(138, 69, 234);
/* oklch */ color: oklch(56.6% 0.233 297.5);
Tailwind
colors: {
  custom: {
    50: '#b37ef2',
    500: '#8a45ea',
    950: '#000000',
  },
}
SCSS
$custom: #8a45ea;
$custom-light: #b37ef2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a45ea",
  "rgb": {
    "r": 138,
    "g": 69,
    "b": 234
  },
  "hsl": {
    "h": 265.091,
    "s": 79.71,
    "l": 59.412
  },
  "oklch": {
    "l": 0.56561,
    "c": 0.23307,
    "h": 297.5
  },
  "luminance": 0.156
}

Semantic roles & 50–950 ramp

primary
#8A45EA
secondary
#CBE6A5
accent
#F632A4
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#120A17
muted
#817C85

Preview Lab

Preview with #8A45EA

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

Preview Lab → · Contrast checker → · Palette generator →

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