#45217D#45217D

#45217D is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.4% C 0.146 H 295.9°. Best body text is #FFFFFF at 11.89:1 contrast (WCAG AA passes).

Color values

HEX#45217D
RGBrgb(69, 33, 125)
HSLhsl(263, 58%, 31%)
HSVhsv(263, 74%, 49%)
CMYKcmyk(44.8%, 73.6%, 0%, 51%)
CIE-LABlab(23.11, 37.94, -45.84)
CIE-LCHlch(23.11, 59.51, 309.61°)
OKLaboklab(35.4% 0.0638 -0.1311)
OKLCHoklch(35.4% 0.146 295.9)
XYZxyz(6.6988, 3.8334, 19.7850)
Luminance0.0383 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45217D #597D21
analogous
#212B7D #45217D #73217D
triadic
#45217D #7D4521 #217D45
tetradic
#45217D #7D212B #597D21 #217D73
square
#45217D #7D212B #597D21 #217D73
split-complementary
#45217D #7D7321 #2B7D21
monochromatic
#10071C #2A144D #45217D #602EAD #7E49CF

Accessibility & contrast

On white

11.89
#45217D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #45217D
11.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45217D#FFFFFF#000000##FFFFFF
##45217D1.0011.891.7711.89
#FFFFFF11.891.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003880
Deuteranopia (green-blind)
#00367B
Tritanopia (blue-blind)
#36384C
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #45217d;
/* rgb */ color: rgb(69, 33, 125);
/* oklch */ color: oklch(35.4% 0.146 295.9);
Tailwind
colors: {
  custom: {
    50: '#7e60a3',
    500: '#45217d',
    950: '#000000',
  },
}
SCSS
$custom: #45217d;
$custom-light: #7e60a3;
$custom-dark: #000000;
JSON
{
  "hex": "#45217d",
  "rgb": {
    "r": 69,
    "g": 33,
    "b": 125
  },
  "hsl": {
    "h": 263.478,
    "s": 58.228,
    "l": 30.98
  },
  "oklch": {
    "l": 0.35401,
    "c": 0.14583,
    "h": 295.9
  },
  "luminance": 0.03834
}

Semantic roles & 50–950 ramp

primary
#45217D
secondary
#88B04A
accent
#E146A5
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #45217D

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

Preview Lab → · Contrast checker → · Palette generator →

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