#45228D#45228D

#45228D is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.0% C 0.164 H 291.1°. Best body text is #FFFFFF at 11.25:1 contrast (WCAG AA passes).

Color values

HEX#45228D
RGBrgb(69, 34, 141)
HSLhsl(260, 61%, 34%)
HSVhsv(260, 76%, 55%)
CMYKcmyk(51.1%, 75.9%, 0%, 44.7%)
CIE-LABlab(24.74, 41.98, -53.23)
CIE-LCHlch(24.74, 67.79, 308.26°)
OKLaboklab(37% 0.0591 -0.1528)
OKLCHoklch(37% 0.164 291.1)
XYZxyz(7.8326, 4.3320, 25.6176)
Luminance0.0433 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45228D #6A8D22
analogous
#22358D #45228D #7B228D
triadic
#45228D #8D4522 #228D45
tetradic
#45228D #8D2235 #6A8D22 #228D7B
square
#45228D #8D2235 #6A8D22 #228D7B
split-complementary
#45228D #8D7B22 #358D22
monochromatic
#150A2A #2D165C #45228D #5D2EBE #7E54D6

Accessibility & contrast

On white

11.25
#45228D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#45228D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45228D
11.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45228D#FFFFFF#000000##FFFFFF
##45228D1.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)
#003C90
Deuteranopia (green-blind)
#00388B
Tritanopia (blue-blind)
#2D3F56
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #45228d;
/* rgb */ color: rgb(69, 34, 141);
/* oklch */ color: oklch(37.0% 0.164 291.1);
Tailwind
colors: {
  custom: {
    50: '#8161af',
    500: '#45228d',
    950: '#000000',
  },
}
SCSS
$custom: #45228d;
$custom-light: #8161af;
$custom-dark: #000000;
JSON
{
  "hex": "#45228d",
  "rgb": {
    "r": 69,
    "g": 34,
    "b": 141
  },
  "hsl": {
    "h": 259.626,
    "s": 61.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.36998,
    "c": 0.16384,
    "h": 291.1
  },
  "luminance": 0.04332
}

Semantic roles & 50–950 ramp

primary
#45228D
secondary
#97B951
accent
#E444B0
background
#F8F5FA
surface
#EFEAF5
border
#CAC6CF
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #45228D

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

Preview Lab → · Contrast checker → · Palette generator →

#45228D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva