#8045C4#8045C4

#8045C4 is a mid, vivid violet. Relative luminance 0.128; OKLCH L 52.6% C 0.190 H 301.5°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#8045C4
RGBrgb(128, 69, 196)
HSLhsl(268, 52%, 52%)
HSVhsv(268, 65%, 77%)
CMYKcmyk(34.7%, 64.8%, 0%, 23.1%)
CIE-LABlab(42.51, 50.04, -57.03)
CIE-LCHlch(42.51, 75.87, 311.27°)
OKLaboklab(52.61% 0.0993 -0.1621)
OKLCHoklch(52.61% 0.19 301.5)
XYZxyz(20.9916, 12.8309, 53.5845)
Luminance0.1283 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8045C4 #89C445
analogous
#454AC4 #8045C4 #C045C4
triadic
#8045C4 #C48045 #45C480
tetradic
#8045C4 #C4454A #89C445 #45C4C0
square
#8045C4 #C4454A #89C445 #45C4C0
split-complementary
#8045C4 #C4C045 #4AC445
monochromatic
#45226C #62319B #8045C4 #A073D3 #BFA2E1

Accessibility & contrast

On white

5.89
#8045C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#8045C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8045C4
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8045C4#FFFFFF#000000##FFFFFF
##8045C41.005.893.575.89
#FFFFFF5.891.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064C8
Deuteranopia (green-blind)
#0F64C1
Tritanopia (blue-blind)
#72617E
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #8045c4;
/* rgb */ color: rgb(128, 69, 196);
/* oklch */ color: oklch(52.6% 0.190 301.5);
Tailwind
colors: {
  custom: {
    50: '#aa7cd7',
    500: '#8045c4',
    950: '#000000',
  },
}
SCSS
$custom: #8045c4;
$custom-light: #aa7cd7;
$custom-dark: #000000;
JSON
{
  "hex": "#8045c4",
  "rgb": {
    "r": 128,
    "g": 69,
    "b": 196
  },
  "hsl": {
    "h": 267.874,
    "s": 51.837,
    "l": 51.961
  },
  "oklch": {
    "l": 0.52613,
    "c": 0.19007,
    "h": 301.5
  },
  "luminance": 0.12831
}

Semantic roles & 50–950 ramp

primary
#8045C4
secondary
#B4CE97
accent
#DB4D99
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100A14
muted
#7F7C83

Preview Lab

Preview with #8045C4

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

Preview Lab → · Contrast checker → · Palette generator →

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