#8045D8#8045D8

#8045D8 is a mid, highly saturated violet. Relative luminance 0.138; OKLCH L 54.1% C 0.212 H 297.1°. Best body text is #FFFFFF at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#8045D8
RGBrgb(128, 69, 216)
HSLhsl(264, 65%, 56%)
HSVhsv(264, 68%, 85%)
CMYKcmyk(40.7%, 68.1%, 0%, 15.3%)
CIE-LABlab(43.95, 55.07, -66.23)
CIE-LCHlch(43.95, 86.13, 309.74°)
OKLaboklab(54.1% 0.0968 -0.1891)
OKLCHoklch(54.1% 0.212 297.1)
XYZxyz(23.4217, 13.8029, 66.3827)
Luminance0.1380 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8045D8 #9DD845
analogous
#4553D8 #8045D8 #CA45D8
triadic
#8045D8 #D88045 #45D880
tetradic
#8045D8 #D84553 #9DD845 #45D8CA
square
#8045D8 #D84553 #9DD845 #45D8CA
split-complementary
#8045D8 #D8CA45 #53D845
monochromatic
#471C86 #6127B9 #8045D8 #A378E3 #C5AAED

Accessibility & contrast

On white

5.58
#8045D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.76
#8045D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8045D8
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8045D8#FFFFFF#000000##FFFFFF
##8045D81.005.583.765.58
#FFFFFF5.581.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068DC
Deuteranopia (green-blind)
#0066D5
Tritanopia (blue-blind)
#6A6889
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #8045d8;
/* rgb */ color: rgb(128, 69, 216);
/* oklch */ color: oklch(54.1% 0.212 297.1);
Tailwind
colors: {
  custom: {
    50: '#ab7de5',
    500: '#8045d8',
    950: '#000000',
  },
}
SCSS
$custom: #8045d8;
$custom-light: #ab7de5;
$custom-dark: #000000;
JSON
{
  "hex": "#8045d8",
  "rgb": {
    "r": 128,
    "g": 69,
    "b": 216
  },
  "hsl": {
    "h": 264.082,
    "s": 65.333,
    "l": 55.882
  },
  "oklch": {
    "l": 0.54103,
    "c": 0.21248,
    "h": 297.1
  },
  "luminance": 0.13803
}

Semantic roles & 50–950 ramp

primary
#8045D8
secondary
#C2DB9E
accent
#E840A5
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#110A16
muted
#807C84

Preview Lab

Preview with #8045D8

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

Preview Lab → · Contrast checker → · Palette generator →

#8045D8 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva