#8A45CB#8A45CB

#8A45CB is a mid, vivid violet. Relative luminance 0.140; OKLCH L 54.2% C 0.200 H 304.1°. Best body text is #FFFFFF at 5.53:1 contrast (WCAG AA passes).

Color values

HEX#8A45CB
RGBrgb(138, 69, 203)
HSLhsl(271, 56%, 53%)
HSVhsv(271, 66%, 80%)
CMYKcmyk(32%, 66%, 0%, 20.4%)
CIE-LABlab(44.19, 53.87, -58.30)
CIE-LCHlch(44.19, 79.38, 312.73°)
OKLaboklab(54.24% 0.1121 -0.1655)
OKLCHoklch(54.24% 0.2 304.1)
XYZxyz(23.3864, 13.9714, 57.9530)
Luminance0.1397 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A45CB #86CB45
analogous
#4745CB #8A45CB #CB45C9
triadic
#8A45CB #CB8A45 #45CB8A
tetradic
#8A45CB #CB4745 #86CB45 #45C9CB
square
#8A45CB #CB4745 #86CB45 #45C9CB
split-complementary
#8A45CB #C9CB45 #45CB47
monochromatic
#4C2175 #6B2EA5 #8A45CB #A875D8 #C6A5E6

Accessibility & contrast

On white

5.53
#8A45CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#8A45CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A45CB
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A45CB#FFFFFF#000000##FFFFFF
##8A45CB1.005.533.795.53
#FFFFFF5.531.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067CF
Deuteranopia (green-blind)
#1768C8
Tritanopia (blue-blind)
#7E6382
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #8a45cb;
/* rgb */ color: rgb(138, 69, 203);
/* oklch */ color: oklch(54.2% 0.200 304.1);
Tailwind
colors: {
  custom: {
    50: '#b17ddc',
    500: '#8a45cb',
    950: '#000000',
  },
}
SCSS
$custom: #8a45cb;
$custom-light: #b17ddc;
$custom-dark: #000000;
JSON
{
  "hex": "#8a45cb",
  "rgb": {
    "r": 138,
    "g": 69,
    "b": 203
  },
  "hsl": {
    "h": 270.896,
    "s": 56.303,
    "l": 53.333
  },
  "oklch": {
    "l": 0.54244,
    "c": 0.19986,
    "h": 304.1
  },
  "luminance": 0.13971
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8A45CB

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

Preview Lab → · Contrast checker → · Palette generator →

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