#45219C#45219C

#45219C is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.3% C 0.182 H 287.7°. Best body text is #FFFFFF at 10.77:1 contrast (WCAG AA passes).

Color values

HEX#45219C
RGBrgb(69, 33, 156)
HSLhsl(258, 65%, 37%)
HSVhsv(258, 79%, 61%)
CMYKcmyk(55.8%, 78.8%, 0%, 38.8%)
CIE-LABlab(26.02, 46.76, -60.37)
CIE-LCHlch(26.02, 76.36, 307.76°)
OKLaboklab(38.33% 0.0556 -0.1737)
OKLCHoklch(38.33% 0.182 287.7)
XYZxyz(8.9971, 4.7528, 31.8893)
Luminance0.0475 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45219C #789C21
analogous
#213B9C #45219C #83219C
triadic
#45219C #9C4521 #219C45
tetradic
#45219C #9C213B #789C21 #219C83
square
#45219C #9C213B #789C21 #219C83
split-complementary
#45219C #9C8321 #3B9C21
monochromatic
#180C37 #2F1669 #45219C #5B2CCF #815BDC

Accessibility & contrast

On white

10.77
#45219C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#45219C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45219C
10.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45219C#FFFFFF#000000##FFFFFF
##45219C1.0010.771.9510.77
#FFFFFF10.771.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409F
Deuteranopia (green-blind)
#003A9A
Tritanopia (blue-blind)
#20445E
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #45219c;
/* rgb */ color: rgb(69, 33, 156);
/* oklch */ color: oklch(38.3% 0.182 287.7);
Tailwind
colors: {
  custom: {
    50: '#8361ba',
    500: '#45219c',
    950: '#000000',
  },
}
SCSS
$custom: #45219c;
$custom-light: #8361ba;
$custom-dark: #000000;
JSON
{
  "hex": "#45219c",
  "rgb": {
    "r": 69,
    "g": 33,
    "b": 156
  },
  "hsl": {
    "h": 257.561,
    "s": 65.079,
    "l": 37.059
  },
  "oklch": {
    "l": 0.38334,
    "c": 0.18242,
    "h": 287.7
  },
  "luminance": 0.04753
}

Semantic roles & 50–950 ramp

primary
#45219C
secondary
#A2C158
accent
#E840B7
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0512
muted
#7D7981

Preview Lab

Preview with #45219C

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

Preview Lab → · Contrast checker → · Palette generator →

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