#45218A#45218A

#45218A is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.6% C 0.161 H 292.1°. Best body text is #FFFFFF at 11.43:1 contrast (WCAG AA passes).

Color values

HEX#45218A
RGBrgb(69, 33, 138)
HSLhsl(261, 61%, 34%)
HSVhsv(261, 76%, 54%)
CMYKcmyk(50%, 76.1%, 0%, 45.9%)
CIE-LABlab(24.28, 41.63, -52.11)
CIE-LCHlch(24.28, 66.70, 308.62°)
OKLaboklab(36.59% 0.0607 -0.1495)
OKLCHoklch(36.59% 0.161 292.1)
XYZxyz(7.5843, 4.1876, 24.4485)
Luminance0.0419 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45218A #668A21
analogous
#21318A #45218A #79218A
triadic
#45218A #8A4521 #218A45
tetradic
#45218A #8A2131 #668A21 #218A79
square
#45218A #8A2131 #668A21 #218A79
split-complementary
#45218A #8A7921 #318A21
monochromatic
#140927 #2C1559 #45218A #5E2DBB #7E50D5

Accessibility & contrast

On white

11.43
#45218A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#45218A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45218A
11.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45218A#FFFFFF#000000##FFFFFF
##45218A1.0011.431.8411.43
#FFFFFF11.431.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8D
Deuteranopia (green-blind)
#003888
Tritanopia (blue-blind)
#2F3D54
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #45218a;
/* rgb */ color: rgb(69, 33, 138);
/* oklch */ color: oklch(36.6% 0.161 292.1);
Tailwind
colors: {
  custom: {
    50: '#8060ad',
    500: '#45218a',
    950: '#000000',
  },
}
SCSS
$custom: #45218a;
$custom-light: #8060ad;
$custom-dark: #000000;
JSON
{
  "hex": "#45218a",
  "rgb": {
    "r": 69,
    "g": 33,
    "b": 138
  },
  "hsl": {
    "h": 260.571,
    "s": 61.404,
    "l": 33.529
  },
  "oklch": {
    "l": 0.3659,
    "c": 0.16138,
    "h": 292.1
  },
  "luminance": 0.04188
}

Semantic roles & 50–950 ramp

primary
#45218A
secondary
#94B94E
accent
#E543AD
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #45218A

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

Preview Lab → · Contrast checker → · Palette generator →

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