#45218B#45218B

#45218B is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.7% C 0.163 H 291.8°. Best body text is #FFFFFF at 11.39:1 contrast (WCAG AA passes).

Color values

HEX#45218B
RGBrgb(69, 33, 139)
HSLhsl(260, 62%, 34%)
HSVhsv(260, 76%, 55%)
CMYKcmyk(50.4%, 76.3%, 0%, 45.5%)
CIE-LABlab(24.38, 41.91, -52.58)
CIE-LCHlch(24.38, 67.24, 308.56°)
OKLaboklab(36.68% 0.0605 -0.1509)
OKLCHoklch(36.68% 0.163 291.8)
XYZxyz(7.6570, 4.2167, 24.8316)
Luminance0.0422 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45218B #678B21
analogous
#21328B #45218B #7A218B
triadic
#45218B #8B4521 #218B45
tetradic
#45218B #8B2132 #678B21 #218B7A
square
#45218B #8B2132 #678B21 #218B7A
split-complementary
#45218B #8B7A21 #328B21
monochromatic
#140A28 #2C155A #45218B #5E2DBC #7E51D6

Accessibility & contrast

On white

11.39
#45218B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #45218B
11.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45218B#FFFFFF#000000##FFFFFF
##45218B1.0011.391.8411.39
#FFFFFF11.391.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8E
Deuteranopia (green-blind)
#003889
Tritanopia (blue-blind)
#2E3E54
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #45218b;
/* rgb */ color: rgb(69, 33, 139);
/* oklch */ color: oklch(36.7% 0.163 291.8);
Tailwind
colors: {
  custom: {
    50: '#8060ae',
    500: '#45218b',
    950: '#000000',
  },
}
SCSS
$custom: #45218b;
$custom-light: #8060ae;
$custom-dark: #000000;
JSON
{
  "hex": "#45218b",
  "rgb": {
    "r": 69,
    "g": 33,
    "b": 139
  },
  "hsl": {
    "h": 260.377,
    "s": 61.628,
    "l": 33.725
  },
  "oklch": {
    "l": 0.36684,
    "c": 0.16258,
    "h": 291.8
  },
  "luminance": 0.04217
}

Semantic roles & 50–950 ramp

primary
#45218B
secondary
#95B94F
accent
#E543AE
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #45218B

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

Preview Lab → · Contrast checker → · Palette generator →

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