#45218D#45218D

#45218D is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.9% C 0.165 H 291.3°. Best body text is #FFFFFF at 11.32:1 contrast (WCAG AA passes).

Color values

HEX#45218D
RGBrgb(69, 33, 141)
HSLhsl(260, 62%, 34%)
HSVhsv(260, 77%, 55%)
CMYKcmyk(51.1%, 76.6%, 0%, 44.7%)
CIE-LABlab(24.56, 42.48, -53.52)
CIE-LCHlch(24.56, 68.33, 308.44°)
OKLaboklab(36.87% 0.0599 -0.1537)
OKLCHoklch(36.87% 0.165 291.3)
XYZxyz(7.8045, 4.2757, 25.6082)
Luminance0.0428 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45218D #698D21
analogous
#21338D #45218D #7B218D
triadic
#45218D #8D4521 #218D45
tetradic
#45218D #8D2133 #698D21 #218D7B
square
#45218D #8D2133 #698D21 #218D7B
split-complementary
#45218D #8D7B21 #338D21
monochromatic
#140A2A #2D155B #45218D #5D2DBF #7E52D6

Accessibility & contrast

On white

11.32
#45218D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #45218D
11.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45218D#FFFFFF#000000##FFFFFF
##45218D1.0011.321.8611.32
#FFFFFF11.321.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C90
Deuteranopia (green-blind)
#00388B
Tritanopia (blue-blind)
#2D3E55
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #45218d;
/* rgb */ color: rgb(69, 33, 141);
/* oklch */ color: oklch(36.9% 0.165 291.3);
Tailwind
colors: {
  custom: {
    50: '#8160af',
    500: '#45218d',
    950: '#000000',
  },
}
SCSS
$custom: #45218d;
$custom-light: #8160af;
$custom-dark: #000000;
JSON
{
  "hex": "#45218d",
  "rgb": {
    "r": 69,
    "g": 33,
    "b": 141
  },
  "hsl": {
    "h": 260,
    "s": 62.069,
    "l": 34.118
  },
  "oklch": {
    "l": 0.36873,
    "c": 0.16494,
    "h": 291.3
  },
  "luminance": 0.04276
}

Semantic roles & 50–950 ramp

primary
#45218D
secondary
#97BA50
accent
#E543AF
background
#F8F5FA
surface
#EFEAF5
border
#CAC6CF
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #45218D

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

Preview Lab → · Contrast checker → · Palette generator →

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