#45217E#45217E

#45217E is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.5% C 0.147 H 295.6°. Best body text is #FFFFFF at 11.85:1 contrast (WCAG AA passes).

Color values

HEX#45217E
RGBrgb(69, 33, 126)
HSLhsl(263, 58%, 31%)
HSVhsv(263, 74%, 49%)
CMYKcmyk(45.2%, 73.8%, 0%, 50.6%)
CIE-LABlab(23.20, 38.23, -46.34)
CIE-LCHlch(23.20, 60.07, 309.52°)
OKLaboklab(35.49% 0.0636 -0.1326)
OKLCHoklch(35.49% 0.147 295.6)
XYZxyz(6.7630, 3.8591, 20.1232)
Luminance0.0386 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45217E #5A7E21
analogous
#212B7E #45217E #73217E
triadic
#45217E #7E4521 #217E45
tetradic
#45217E #7E212B #5A7E21 #217E73
square
#45217E #7E212B #5A7E21 #217E73
split-complementary
#45217E #7E7321 #2B7E21
monochromatic
#10081D #2A144E #45217E #602EAE #7E4AD0

Accessibility & contrast

On white

11.85
#45217E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#45217E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45217E
11.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45217E#FFFFFF#000000##FFFFFF
##45217E1.0011.851.7711.85
#FFFFFF11.851.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003881
Deuteranopia (green-blind)
#00367C
Tritanopia (blue-blind)
#36394D
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #45217e;
/* rgb */ color: rgb(69, 33, 126);
/* oklch */ color: oklch(35.5% 0.147 295.6);
Tailwind
colors: {
  custom: {
    50: '#7e60a4',
    500: '#45217e',
    950: '#000000',
  },
}
SCSS
$custom: #45217e;
$custom-light: #7e60a4;
$custom-dark: #000000;
JSON
{
  "hex": "#45217e",
  "rgb": {
    "r": 69,
    "g": 33,
    "b": 126
  },
  "hsl": {
    "h": 263.226,
    "s": 58.491,
    "l": 31.176
  },
  "oklch": {
    "l": 0.3549,
    "c": 0.14704,
    "h": 295.6
  },
  "luminance": 0.03859
}

Semantic roles & 50–950 ramp

primary
#45217E
secondary
#89B14A
accent
#E246A5
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #45217E

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

Preview Lab → · Contrast checker → · Palette generator →

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