#8A45D4#8A45D4

#8A45D4 is a mid, highly saturated violet. Relative luminance 0.144; OKLCH L 54.9% C 0.210 H 302.0°. Best body text is #FFFFFF at 5.41:1 contrast (WCAG AA passes).

Color values

HEX#8A45D4
RGBrgb(138, 69, 212)
HSLhsl(269, 62%, 55%)
HSVhsv(269, 67%, 83%)
CMYKcmyk(34.9%, 67.5%, 0%, 16.9%)
CIE-LABlab(44.82, 56.01, -62.47)
CIE-LCHlch(44.82, 83.90, 311.88°)
OKLaboklab(54.89% 0.111 -0.1777)
OKLCHoklch(54.89% 0.21 302)
XYZxyz(24.4902, 14.4129, 63.7663)
Luminance0.1441 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A45D4 #8FD445
analogous
#4548D4 #8A45D4 #D145D4
triadic
#8A45D4 #D48A45 #45D48A
tetradic
#8A45D4 #D44548 #8FD445 #45D4D1
square
#8A45D4 #D44548 #8FD445 #45D4D1
split-complementary
#8A45D4 #D4D145 #48D445
monochromatic
#4E1E81 #6C29B3 #8A45D4 #A977DF #C9A8EB

Accessibility & contrast

On white

5.41
#8A45D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.88
#8A45D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A45D4
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A45D4#FFFFFF#000000##FFFFFF
##8A45D41.005.413.885.41
#FFFFFF5.411.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D8
Deuteranopia (green-blind)
#0069D1
Tritanopia (blue-blind)
#7B6687
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #8a45d4;
/* rgb */ color: rgb(138, 69, 212);
/* oklch */ color: oklch(54.9% 0.210 302.0);
Tailwind
colors: {
  custom: {
    50: '#b27de2',
    500: '#8a45d4',
    950: '#000000',
  },
}
SCSS
$custom: #8a45d4;
$custom-light: #b27de2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a45d4",
  "rgb": {
    "r": 138,
    "g": 69,
    "b": 212
  },
  "hsl": {
    "h": 268.951,
    "s": 62.445,
    "l": 55.098
  },
  "oklch": {
    "l": 0.54893,
    "c": 0.20957,
    "h": 302
  },
  "luminance": 0.14413
}

Semantic roles & 50–950 ramp

primary
#8A45D4
secondary
#BBD89C
accent
#E64297
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#110A15
muted
#807C84

Preview Lab

Preview with #8A45D4

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

Preview Lab → · Contrast checker → · Palette generator →

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