#8045C2#8045C2

#8045C2 is a mid, vivid violet. Relative luminance 0.127; OKLCH L 52.5% C 0.188 H 302.0°. Best body text is #FFFFFF at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#8045C2
RGBrgb(128, 69, 194)
HSLhsl(268, 51%, 52%)
HSVhsv(268, 64%, 76%)
CMYKcmyk(34%, 64.4%, 0%, 23.9%)
CIE-LABlab(42.37, 49.55, -56.09)
CIE-LCHlch(42.37, 74.84, 311.46°)
OKLaboklab(52.47% 0.0995 -0.1593)
OKLCHoklch(52.47% 0.188 302)
XYZxyz(20.7655, 12.7404, 52.3936)
Luminance0.1274 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8045C2 #87C245
analogous
#4549C2 #8045C2 #BF45C2
triadic
#8045C2 #C28045 #45C280
tetradic
#8045C2 #C24549 #87C245 #45C2BF
square
#8045C2 #C24549 #87C245 #45C2BF
split-complementary
#8045C2 #C2BF45 #49C245
monochromatic
#44236A #623298 #8045C2 #9F73D1 #BFA1E0

Accessibility & contrast

On white

5.92
#8045C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#8045C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8045C2
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8045C2#FFFFFF#000000##FFFFFF
##8045C21.005.923.555.92
#FFFFFF5.921.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063C6
Deuteranopia (green-blind)
#1563BF
Tritanopia (blue-blind)
#73607D
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #8045c2;
/* rgb */ color: rgb(128, 69, 194);
/* oklch */ color: oklch(52.5% 0.188 302.0);
Tailwind
colors: {
  custom: {
    50: '#a97cd5',
    500: '#8045c2',
    950: '#000000',
  },
}
SCSS
$custom: #8045c2;
$custom-light: #a97cd5;
$custom-dark: #000000;
JSON
{
  "hex": "#8045c2",
  "rgb": {
    "r": 128,
    "g": 69,
    "b": 194
  },
  "hsl": {
    "h": 268.32,
    "s": 50.607,
    "l": 51.569
  },
  "oklch": {
    "l": 0.5247,
    "c": 0.18781,
    "h": 302
  },
  "luminance": 0.1274
}

Semantic roles & 50–950 ramp

primary
#8045C2
secondary
#B3CD96
accent
#DA4E98
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100A14
muted
#7F7C83

Preview Lab

Preview with #8045C2

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

Preview Lab → · Contrast checker → · Palette generator →

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