#8A45D2#8A45D2

#8A45D2 is a mid, highly saturated violet. Relative luminance 0.143; OKLCH L 54.7% C 0.207 H 302.4°. Best body text is #FFFFFF at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#8A45D2
RGBrgb(138, 69, 210)
HSLhsl(269, 61%, 55%)
HSVhsv(269, 67%, 82%)
CMYKcmyk(34.3%, 67.1%, 0%, 17.6%)
CIE-LABlab(44.68, 55.53, -61.55)
CIE-LCHlch(44.68, 82.90, 312.06°)
OKLaboklab(54.75% 0.1113 -0.175)
OKLCHoklch(54.75% 0.207 302.4)
XYZxyz(24.2395, 14.3126, 62.4459)
Luminance0.1431 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A45D2 #8DD245
analogous
#4546D2 #8A45D2 #D145D2
triadic
#8A45D2 #D28A45 #45D28A
tetradic
#8A45D2 #D24546 #8DD245 #45D2D1
square
#8A45D2 #D24546 #8DD245 #45D2D1
split-complementary
#8A45D2 #D2D145 #46D245
monochromatic
#4D1F7E #6B2AAF #8A45D2 #A976DE #C8A8EA

Accessibility & contrast

On white

5.44
#8A45D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#8A45D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A45D2
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A45D2#FFFFFF#000000##FFFFFF
##8A45D21.005.443.865.44
#FFFFFF5.441.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D6
Deuteranopia (green-blind)
#0069CF
Tritanopia (blue-blind)
#7B6586
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #8a45d2;
/* rgb */ color: rgb(138, 69, 210);
/* oklch */ color: oklch(54.7% 0.207 302.4);
Tailwind
colors: {
  custom: {
    50: '#b17de1',
    500: '#8a45d2',
    950: '#000000',
  },
}
SCSS
$custom: #8a45d2;
$custom-light: #b17de1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a45d2",
  "rgb": {
    "r": 138,
    "g": 69,
    "b": 210
  },
  "hsl": {
    "h": 269.362,
    "s": 61.039,
    "l": 54.706
  },
  "oklch": {
    "l": 0.54747,
    "c": 0.20742,
    "h": 302.4
  },
  "luminance": 0.14313
}

Semantic roles & 50–950 ramp

primary
#8A45D2
secondary
#BAD79C
accent
#E44496
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8A45D2

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

Preview Lab → · Contrast checker → · Palette generator →

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