#45216B#45216B

#45216B is a dark, vivid violet. Relative luminance 0.034; OKLCH L 33.9% C 0.124 H 302.6°. Best body text is #FFFFFF at 12.48:1 contrast (WCAG AA passes).

Color values

HEX#45216B
RGBrgb(69, 33, 107)
HSLhsl(269, 53%, 27%)
HSVhsv(269, 69%, 42%)
CMYKcmyk(35.5%, 69.2%, 0%, 58%)
CIE-LABlab(21.63, 32.94, -36.70)
CIE-LCHlch(21.63, 49.32, 311.91°)
OKLaboklab(33.88% 0.0667 -0.1043)
OKLCHoklch(33.88% 0.124 302.6)
XYZxyz(5.6513, 3.4145, 14.2684)
Luminance0.0341 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45216B #476B21
analogous
#21226B #45216B #6A216B
triadic
#45216B #6B4521 #216B45
tetradic
#45216B #6B2122 #476B21 #216B6A
square
#45216B #6B2122 #476B21 #216B6A
split-complementary
#45216B #6B6A21 #226B21
monochromatic
#0F0717 #27133C #45216B #632F9A #8142C5

Accessibility & contrast

On white

12.48
#45216B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#45216B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45216B
12.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45216B#FFFFFF#000000##FFFFFF
##45216B1.0012.481.6812.48
#FFFFFF12.481.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00336D
Deuteranopia (green-blind)
#053469
Tritanopia (blue-blind)
#3D3143
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #45216b;
/* rgb */ color: rgb(69, 33, 107);
/* oklch */ color: oklch(33.9% 0.124 302.6);
Tailwind
colors: {
  custom: {
    50: '#7c5f96',
    500: '#45216b',
    950: '#000000',
  },
}
SCSS
$custom: #45216b;
$custom-light: #7c5f96;
$custom-dark: #000000;
JSON
{
  "hex": "#45216b",
  "rgb": {
    "r": 69,
    "g": 33,
    "b": 107
  },
  "hsl": {
    "h": 269.189,
    "s": 52.857,
    "l": 27.451
  },
  "oklch": {
    "l": 0.33879,
    "c": 0.12377,
    "h": 302.6
  },
  "luminance": 0.03414
}

Semantic roles & 50–950 ramp

primary
#45216B
secondary
#759F49
accent
#DC4C96
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A050D
muted
#7C797E

Preview Lab

Preview with #45216B

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

Preview Lab → · Contrast checker → · Palette generator →

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