#8045CB#8045CB

#8045CB is a mid, vivid violet. Relative luminance 0.132; OKLCH L 53.1% C 0.198 H 299.9°. Best body text is #FFFFFF at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#8045CB
RGBrgb(128, 69, 203)
HSLhsl(266, 56%, 53%)
HSVhsv(266, 66%, 80%)
CMYKcmyk(36.9%, 66%, 0%, 20.4%)
CIE-LABlab(43.00, 51.79, -60.29)
CIE-LCHlch(43.00, 79.48, 310.66°)
OKLaboklab(53.12% 0.0986 -0.1717)
OKLCHoklch(53.12% 0.198 299.9)
XYZxyz(21.8070, 13.1570, 57.8790)
Luminance0.1316 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8045CB #90CB45
analogous
#454DCB #8045CB #C345CB
triadic
#8045CB #CB8045 #45CB80
tetradic
#8045CB #CB454D #90CB45 #45CBC3
square
#8045CB #CB454D #90CB45 #45CBC3
split-complementary
#8045CB #CBC345 #4DCB45
monochromatic
#462175 #622EA5 #8045CB #A175D8 #C1A5E6

Accessibility & contrast

On white

5.78
#8045CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#8045CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8045CB
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8045CB#FFFFFF#000000##FFFFFF
##8045CB1.005.783.635.78
#FFFFFF5.781.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065CF
Deuteranopia (green-blind)
#0065C8
Tritanopia (blue-blind)
#6F6482
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #8045cb;
/* rgb */ color: rgb(128, 69, 203);
/* oklch */ color: oklch(53.1% 0.198 299.9);
Tailwind
colors: {
  custom: {
    50: '#aa7cdc',
    500: '#8045cb',
    950: '#000000',
  },
}
SCSS
$custom: #8045cb;
$custom-light: #aa7cdc;
$custom-dark: #000000;
JSON
{
  "hex": "#8045cb",
  "rgb": {
    "r": 128,
    "g": 69,
    "b": 203
  },
  "hsl": {
    "h": 266.418,
    "s": 56.303,
    "l": 53.333
  },
  "oklch": {
    "l": 0.53123,
    "c": 0.19795,
    "h": 299.9
  },
  "luminance": 0.13157
}

Semantic roles & 50–950 ramp

primary
#8045CB
secondary
#B9D399
accent
#E0489D
background
#FAF7FD
surface
#F5EEFB
border
#CFC9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8045CB

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

Preview Lab → · Contrast checker → · Palette generator →

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