#45217B#45217B

#45217B is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.2% C 0.143 H 296.6°. Best body text is #FFFFFF at 11.95:1 contrast (WCAG AA passes).

Color values

HEX#45217B
RGBrgb(69, 33, 123)
HSLhsl(264, 58%, 31%)
HSVhsv(264, 73%, 48%)
CMYKcmyk(43.9%, 73.2%, 0%, 51.8%)
CIE-LABlab(22.94, 37.38, -44.86)
CIE-LCHlch(22.94, 58.39, 309.81°)
OKLaboklab(35.23% 0.0642 -0.1282)
OKLCHoklch(35.23% 0.143 296.6)
XYZxyz(6.5723, 3.7828, 19.1189)
Luminance0.0378 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45217B #577B21
analogous
#212A7B #45217B #72217B
triadic
#45217B #7B4521 #217B45
tetradic
#45217B #7B212A #577B21 #217B72
square
#45217B #7B212A #577B21 #217B72
split-complementary
#45217B #7B7221 #2A7B21
monochromatic
#0F071A #2A144B #45217B #602EAB #7E48CE

Accessibility & contrast

On white

11.95
#45217B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#45217B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45217B
11.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45217B#FFFFFF#000000##FFFFFF
##45217B1.0011.951.7611.95
#FFFFFF11.951.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377E
Deuteranopia (green-blind)
#003679
Tritanopia (blue-blind)
#37374B
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #45217b;
/* rgb */ color: rgb(69, 33, 123);
/* oklch */ color: oklch(35.2% 0.143 296.6);
Tailwind
colors: {
  custom: {
    50: '#7e5fa2',
    500: '#45217b',
    950: '#000000',
  },
}
SCSS
$custom: #45217b;
$custom-light: #7e5fa2;
$custom-dark: #000000;
JSON
{
  "hex": "#45217b",
  "rgb": {
    "r": 69,
    "g": 33,
    "b": 123
  },
  "hsl": {
    "h": 264,
    "s": 57.692,
    "l": 30.588
  },
  "oklch": {
    "l": 0.35225,
    "c": 0.1434,
    "h": 296.6
  },
  "luminance": 0.03783
}

Semantic roles & 50–950 ramp

primary
#45217B
secondary
#86AE4A
accent
#E147A3
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #45217B

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

Preview Lab → · Contrast checker → · Palette generator →

#45217B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva