#45218F#45218F

#45218F is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.1% C 0.167 H 290.8°. Best body text is #FFFFFF at 11.25:1 contrast (WCAG AA passes).

Color values

HEX#45218F
RGBrgb(69, 33, 143)
HSLhsl(260, 63%, 35%)
HSVhsv(260, 77%, 56%)
CMYKcmyk(51.7%, 76.9%, 0%, 43.9%)
CIE-LABlab(24.75, 43.05, -54.45)
CIE-LCHlch(24.75, 69.41, 308.33°)
OKLaboklab(37.06% 0.0594 -0.1564)
OKLCHoklch(37.06% 0.167 290.8)
XYZxyz(7.9546, 4.3358, 26.3990)
Luminance0.0434 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45218F #6B8F21
analogous
#21348F #45218F #7C218F
triadic
#45218F #8F4521 #218F45
tetradic
#45218F #8F2134 #6B8F21 #218F7C
square
#45218F #8F2134 #6B8F21 #218F7C
split-complementary
#45218F #8F7C21 #348F21
monochromatic
#150A2C #2D165D #45218F #5D2CC1 #7E53D7

Accessibility & contrast

On white

11.25
#45218F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#45218F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45218F
11.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45218F#FFFFFF#000000##FFFFFF
##45218F1.0011.251.8711.25
#FFFFFF11.251.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D92
Deuteranopia (green-blind)
#00388D
Tritanopia (blue-blind)
#2B3F57
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #45218f;
/* rgb */ color: rgb(69, 33, 143);
/* oklch */ color: oklch(37.1% 0.167 290.8);
Tailwind
colors: {
  custom: {
    50: '#8160b1',
    500: '#45218f',
    950: '#000000',
  },
}
SCSS
$custom: #45218f;
$custom-light: #8160b1;
$custom-dark: #000000;
JSON
{
  "hex": "#45218f",
  "rgb": {
    "r": 69,
    "g": 33,
    "b": 143
  },
  "hsl": {
    "h": 259.636,
    "s": 62.5,
    "l": 34.51
  },
  "oklch": {
    "l": 0.37064,
    "c": 0.16729,
    "h": 290.8
  },
  "luminance": 0.04336
}

Semantic roles & 50–950 ramp

primary
#45218F
secondary
#98BB51
accent
#E642B0
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #45218F

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

Preview Lab → · Contrast checker → · Palette generator →

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