#45217C#45217C

#45217C is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.3% C 0.145 H 296.3°. Best body text is #FFFFFF at 11.92:1 contrast (WCAG AA passes).

Color values

HEX#45217C
RGBrgb(69, 33, 124)
HSLhsl(264, 58%, 31%)
HSVhsv(264, 73%, 49%)
CMYKcmyk(44.4%, 73.4%, 0%, 51.4%)
CIE-LABlab(23.03, 37.66, -45.35)
CIE-LCHlch(23.03, 58.95, 309.71°)
OKLaboklab(35.31% 0.064 -0.1297)
OKLCHoklch(35.31% 0.145 296.3)
XYZxyz(6.6352, 3.8080, 19.4503)
Luminance0.0381 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45217C #587C21
analogous
#212A7C #45217C #72217C
triadic
#45217C #7C4521 #217C45
tetradic
#45217C #7C212A #587C21 #217C72
square
#45217C #7C212A #587C21 #217C72
split-complementary
#45217C #7C7221 #2A7C21
monochromatic
#0F071B #2A144C #45217C #602EAC #7E49CF

Accessibility & contrast

On white

11.92
#45217C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #45217C
11.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45217C#FFFFFF#000000##FFFFFF
##45217C1.0011.921.7611.92
#FFFFFF11.921.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377F
Deuteranopia (green-blind)
#00367A
Tritanopia (blue-blind)
#36384C
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #45217c;
/* rgb */ color: rgb(69, 33, 124);
/* oklch */ color: oklch(35.3% 0.145 296.3);
Tailwind
colors: {
  custom: {
    50: '#7e60a3',
    500: '#45217c',
    950: '#000000',
  },
}
SCSS
$custom: #45217c;
$custom-light: #7e60a3;
$custom-dark: #000000;
JSON
{
  "hex": "#45217c",
  "rgb": {
    "r": 69,
    "g": 33,
    "b": 124
  },
  "hsl": {
    "h": 263.736,
    "s": 57.962,
    "l": 30.784
  },
  "oklch": {
    "l": 0.35313,
    "c": 0.14462,
    "h": 296.3
  },
  "luminance": 0.03808
}

Semantic roles & 50–950 ramp

primary
#45217C
secondary
#87AF4A
accent
#E147A4
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #45217C

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

Preview Lab → · Contrast checker → · Palette generator →

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