#45216E#45216E

#45216E is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.1% C 0.127 H 301.4°. Best body text is #FFFFFF at 12.38:1 contrast (WCAG AA passes).

Color values

HEX#45216E
RGBrgb(69, 33, 110)
HSLhsl(268, 54%, 28%)
HSVhsv(268, 70%, 43%)
CMYKcmyk(37.3%, 70%, 0%, 56.9%)
CIE-LABlab(21.87, 33.76, -38.27)
CIE-LCHlch(21.87, 51.03, 311.42°)
OKLaboklab(34.12% 0.0663 -0.1089)
OKLCHoklch(34.12% 0.127 301.4)
XYZxyz(5.8119, 3.4787, 15.1141)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45216E #4A6E21
analogous
#21236E #45216E #6B216E
triadic
#45216E #6E4521 #216E45
tetradic
#45216E #6E2123 #4A6E21 #216E6B
square
#45216E #6E2123 #4A6E21 #216E6B
split-complementary
#45216E #6E6B21 #236E21
monochromatic
#0F0718 #27133F #45216E #632F9D #8043C7

Accessibility & contrast

On white

12.38
#45216E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#45216E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45216E
12.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45216E#FFFFFF#000000##FFFFFF
##45216E1.0012.381.7012.38
#FFFFFF12.381.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003470
Deuteranopia (green-blind)
#00346C
Tritanopia (blue-blind)
#3C3344
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #45216e;
/* rgb */ color: rgb(69, 33, 110);
/* oklch */ color: oklch(34.1% 0.127 301.4);
Tailwind
colors: {
  custom: {
    50: '#7c5f98',
    500: '#45216e',
    950: '#000000',
  },
}
SCSS
$custom: #45216e;
$custom-light: #7c5f98;
$custom-dark: #000000;
JSON
{
  "hex": "#45216e",
  "rgb": {
    "r": 69,
    "g": 33,
    "b": 110
  },
  "hsl": {
    "h": 268.052,
    "s": 53.846,
    "l": 28.039
  },
  "oklch": {
    "l": 0.34121,
    "c": 0.12748,
    "h": 301.4
  },
  "luminance": 0.03479
}

Semantic roles & 50–950 ramp

primary
#45216E
secondary
#78A249
accent
#DD4B99
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A050E
muted
#7C797E

Preview Lab

Preview with #45216E

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

Preview Lab → · Contrast checker → · Palette generator →

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