#45218E#45218E

#45218E is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.0% C 0.166 H 291.0°. Best body text is #FFFFFF at 11.28:1 contrast (WCAG AA passes).

Color values

HEX#45218E
RGBrgb(69, 33, 142)
HSLhsl(260, 62%, 34%)
HSVhsv(260, 77%, 56%)
CMYKcmyk(51.4%, 76.8%, 0%, 44.3%)
CIE-LABlab(24.66, 42.77, -53.98)
CIE-LCHlch(24.66, 68.87, 308.39°)
OKLaboklab(36.97% 0.0597 -0.155)
OKLCHoklch(36.97% 0.166 291)
XYZxyz(7.8792, 4.3056, 26.0018)
Luminance0.0431 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45218E #6A8E21
analogous
#21338E #45218E #7C218E
triadic
#45218E #8E4521 #218E45
tetradic
#45218E #8E2133 #6A8E21 #218E7C
square
#45218E #8E2133 #6A8E21 #218E7C
split-complementary
#45218E #8E7C21 #338E21
monochromatic
#150A2B #2D155C #45218E #5D2DC0 #7E52D7

Accessibility & contrast

On white

11.28
#45218E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#45218E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45218E
11.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45218E#FFFFFF#000000##FFFFFF
##45218E1.0011.281.8611.28
#FFFFFF11.281.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C91
Deuteranopia (green-blind)
#00388C
Tritanopia (blue-blind)
#2C3F56
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #45218e;
/* rgb */ color: rgb(69, 33, 142);
/* oklch */ color: oklch(37.0% 0.166 291.0);
Tailwind
colors: {
  custom: {
    50: '#8160b0',
    500: '#45218e',
    950: '#000000',
  },
}
SCSS
$custom: #45218e;
$custom-light: #8160b0;
$custom-dark: #000000;
JSON
{
  "hex": "#45218e",
  "rgb": {
    "r": 69,
    "g": 33,
    "b": 142
  },
  "hsl": {
    "h": 259.817,
    "s": 62.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.36968,
    "c": 0.16611,
    "h": 291
  },
  "luminance": 0.04306
}

Semantic roles & 50–950 ramp

primary
#45218E
secondary
#97BA50
accent
#E542B0
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #45218E

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

Preview Lab → · Contrast checker → · Palette generator →

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