#45219E#45219E

#45219E is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.5% C 0.185 H 287.3°. Best body text is #FFFFFF at 10.69:1 contrast (WCAG AA passes).

Color values

HEX#45219E
RGBrgb(69, 33, 158)
HSLhsl(257, 65%, 37%)
HSVhsv(257, 79%, 62%)
CMYKcmyk(56.3%, 79.1%, 0%, 38%)
CIE-LABlab(26.22, 47.33, -61.26)
CIE-LCHlch(26.22, 77.42, 307.69°)
OKLaboklab(38.53% 0.055 -0.1763)
OKLCHoklch(38.53% 0.185 287.3)
XYZxyz(9.1678, 4.8211, 32.7886)
Luminance0.0482 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45219E #7A9E21
analogous
#213C9E #45219E #84219E
triadic
#45219E #9E4521 #219E45
tetradic
#45219E #9E213C #7A9E21 #219E84
square
#45219E #9E213C #7A9E21 #219E84
split-complementary
#45219E #9E8421 #3C9E21
monochromatic
#190C39 #2F166B #45219E #5B2CD1 #815CDD

Accessibility & contrast

On white

10.69
#45219E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#45219E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45219E
10.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45219E#FFFFFF#000000##FFFFFF
##45219E1.0010.691.9610.69
#FFFFFF10.691.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A1
Deuteranopia (green-blind)
#003B9C
Tritanopia (blue-blind)
#1D455F
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #45219e;
/* rgb */ color: rgb(69, 33, 158);
/* oklch */ color: oklch(38.5% 0.185 287.3);
Tailwind
colors: {
  custom: {
    50: '#8361bc',
    500: '#45219e',
    950: '#000000',
  },
}
SCSS
$custom: #45219e;
$custom-light: #8361bc;
$custom-dark: #000000;
JSON
{
  "hex": "#45219e",
  "rgb": {
    "r": 69,
    "g": 33,
    "b": 158
  },
  "hsl": {
    "h": 257.28,
    "s": 65.445,
    "l": 37.451
  },
  "oklch": {
    "l": 0.38534,
    "c": 0.18472,
    "h": 287.3
  },
  "luminance": 0.04822
}

Semantic roles & 50–950 ramp

primary
#45219E
secondary
#A3C159
accent
#E83FB8
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0512
muted
#7D7981

Preview Lab

Preview with #45219E

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

Preview Lab → · Contrast checker → · Palette generator →

#45219E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva