#45218C#45218C

#45218C is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.8% C 0.164 H 291.6°. Best body text is #FFFFFF at 11.36:1 contrast (WCAG AA passes).

Color values

HEX#45218C
RGBrgb(69, 33, 140)
HSLhsl(260, 62%, 34%)
HSVhsv(260, 76%, 55%)
CMYKcmyk(50.7%, 76.4%, 0%, 45.1%)
CIE-LABlab(24.47, 42.20, -53.05)
CIE-LCHlch(24.47, 67.79, 308.50°)
OKLaboklab(36.78% 0.0602 -0.1523)
OKLCHoklch(36.78% 0.164 291.6)
XYZxyz(7.7304, 4.2461, 25.2181)
Luminance0.0425 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45218C #688C21
analogous
#21338C #45218C #7B218C
triadic
#45218C #8C4521 #218C45
tetradic
#45218C #8C2133 #688C21 #218C7B
square
#45218C #8C2133 #688C21 #218C7B
split-complementary
#45218C #8C7B21 #338C21
monochromatic
#140A29 #2D155A #45218C #5D2DBE #7E51D6

Accessibility & contrast

On white

11.36
#45218C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#45218C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45218C
11.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45218C#FFFFFF#000000##FFFFFF
##45218C1.0011.361.8511.36
#FFFFFF11.361.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8F
Deuteranopia (green-blind)
#00388A
Tritanopia (blue-blind)
#2D3E55
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #45218c;
/* rgb */ color: rgb(69, 33, 140);
/* oklch */ color: oklch(36.8% 0.164 291.6);
Tailwind
colors: {
  custom: {
    50: '#8060af',
    500: '#45218c',
    950: '#000000',
  },
}
SCSS
$custom: #45218c;
$custom-light: #8060af;
$custom-dark: #000000;
JSON
{
  "hex": "#45218c",
  "rgb": {
    "r": 69,
    "g": 33,
    "b": 140
  },
  "hsl": {
    "h": 260.187,
    "s": 61.85,
    "l": 33.922
  },
  "oklch": {
    "l": 0.36778,
    "c": 0.16375,
    "h": 291.6
  },
  "luminance": 0.04246
}

Semantic roles & 50–950 ramp

primary
#45218C
secondary
#96B94F
accent
#E543AE
background
#F8F5FA
surface
#EFEAF5
border
#CAC6CF
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #45218C

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

Preview Lab → · Contrast checker → · Palette generator →

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