#8045B7#8045B7

#8045B7 is a mid, vivid violet. Relative luminance 0.123; OKLCH L 51.7% C 0.175 H 304.8°. Best body text is #FFFFFF at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#8045B7
RGBrgb(128, 69, 183)
HSLhsl(271, 45%, 49%)
HSVhsv(271, 62%, 72%)
CMYKcmyk(30.1%, 62.3%, 0%, 28.2%)
CIE-LABlab(41.63, 46.86, -50.84)
CIE-LCHlch(41.63, 69.14, 312.67°)
OKLaboklab(51.7% 0.1002 -0.1439)
OKLCHoklch(51.7% 0.175 304.8)
XYZxyz(19.5756, 12.2644, 46.1266)
Luminance0.1226 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8045B7 #7CB745
analogous
#4745B7 #8045B7 #B745B5
triadic
#8045B7 #B78045 #45B780
tetradic
#8045B7 #B74745 #7CB745 #45B5B7
square
#8045B7 #B74745 #7CB745 #45B5B7
split-complementary
#8045B7 #B5B745 #45B747
monochromatic
#42235E #61348B #8045B7 #9E70C9 #BC9DDA

Accessibility & contrast

On white

6.08
#8045B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#8045B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8045B7
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8045B7#FFFFFF#000000##FFFFFF
##8045B71.006.083.456.08
#FFFFFF6.081.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061BB
Deuteranopia (green-blind)
#2962B4
Tritanopia (blue-blind)
#765D77
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #8045b7;
/* rgb */ color: rgb(128, 69, 183);
/* oklch */ color: oklch(51.7% 0.175 304.8);
Tailwind
colors: {
  custom: {
    50: '#a97ccd',
    500: '#8045b7',
    950: '#000000',
  },
}
SCSS
$custom: #8045b7;
$custom-light: #a97ccd;
$custom-dark: #000000;
JSON
{
  "hex": "#8045b7",
  "rgb": {
    "r": 128,
    "g": 69,
    "b": 183
  },
  "hsl": {
    "h": 271.053,
    "s": 45.238,
    "l": 49.412
  },
  "oklch": {
    "l": 0.51703,
    "c": 0.17533,
    "h": 304.8
  },
  "luminance": 0.12264
}

Semantic roles & 50–950 ramp

primary
#8045B7
secondary
#ABC692
accent
#D55392
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100A13
muted
#7F7C82

Preview Lab

Preview with #8045B7

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

Preview Lab → · Contrast checker → · Palette generator →

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