#8A45CC#8A45CC

#8A45CC is a mid, highly saturated violet. Relative luminance 0.140; OKLCH L 54.3% C 0.201 H 303.9°. Best body text is #FFFFFF at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#8A45CC
RGBrgb(138, 69, 204)
HSLhsl(271, 57%, 54%)
HSVhsv(271, 66%, 80%)
CMYKcmyk(32.4%, 66.2%, 0%, 20%)
CIE-LABlab(44.26, 54.10, -58.77)
CIE-LCHlch(44.26, 79.88, 312.63°)
OKLaboklab(54.32% 0.1119 -0.1669)
OKLCHoklch(54.32% 0.201 303.9)
XYZxyz(23.5060, 14.0192, 58.5827)
Luminance0.1402 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A45CC #87CC45
analogous
#4645CC #8A45CC #CC45CA
triadic
#8A45CC #CC8A45 #45CC8A
tetradic
#8A45CC #CC4645 #87CC45 #45CACC
square
#8A45CC #CC4645 #87CC45 #45CACC
split-complementary
#8A45CC #CACC45 #45CC46
monochromatic
#4C2076 #6B2EA6 #8A45CC #A875D9 #C6A5E6

Accessibility & contrast

On white

5.52
#8A45CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.80
#8A45CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A45CC
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A45CC#FFFFFF#000000##FFFFFF
##8A45CC1.005.523.805.52
#FFFFFF5.521.0021.001.00
#0000003.8021.001.0021.00
##FFFFFF5.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D0
Deuteranopia (green-blind)
#1468C9
Tritanopia (blue-blind)
#7D6383
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #8a45cc;
/* rgb */ color: rgb(138, 69, 204);
/* oklch */ color: oklch(54.3% 0.201 303.9);
Tailwind
colors: {
  custom: {
    50: '#b17ddc',
    500: '#8a45cc',
    950: '#000000',
  },
}
SCSS
$custom: #8a45cc;
$custom-light: #b17ddc;
$custom-dark: #000000;
JSON
{
  "hex": "#8a45cc",
  "rgb": {
    "r": 138,
    "g": 69,
    "b": 204
  },
  "hsl": {
    "h": 270.667,
    "s": 56.962,
    "l": 53.529
  },
  "oklch": {
    "l": 0.54315,
    "c": 0.20094,
    "h": 303.9
  },
  "luminance": 0.14019
}

Semantic roles & 50–950 ramp

primary
#8A45CC
secondary
#B6D399
accent
#E04892
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8A45CC

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

Preview Lab → · Contrast checker → · Palette generator →

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