#45228E#45228E

#45228E is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.1% C 0.165 H 290.9°. Best body text is #FFFFFF at 11.22:1 contrast (WCAG AA passes).

Color values

HEX#45228E
RGBrgb(69, 34, 142)
HSLhsl(259, 61%, 35%)
HSVhsv(259, 76%, 56%)
CMYKcmyk(51.4%, 76.1%, 0%, 44.3%)
CIE-LABlab(24.83, 42.27, -53.70)
CIE-LCHlch(24.83, 68.34, 308.21°)
OKLaboklab(37.09% 0.0588 -0.1542)
OKLCHoklch(37.09% 0.165 290.9)
XYZxyz(7.9074, 4.3619, 26.0112)
Luminance0.0436 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45228E #6B8E22
analogous
#22358E #45228E #7B228E
triadic
#45228E #8E4522 #228E45
tetradic
#45228E #8E2235 #6B8E22 #228E7B
square
#45228E #8E2235 #6B8E22 #228E7B
split-complementary
#45228E #8E7B22 #358E22
monochromatic
#150A2B #2D165D #45228E #5D2EBF #7E54D6

Accessibility & contrast

On white

11.22
#45228E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #45228E
11.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45228E#FFFFFF#000000##FFFFFF
##45228E1.0011.221.8711.22
#FFFFFF11.221.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D91
Deuteranopia (green-blind)
#00398C
Tritanopia (blue-blind)
#2C3F56
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #45228e;
/* rgb */ color: rgb(69, 34, 142);
/* oklch */ color: oklch(37.1% 0.165 290.9);
Tailwind
colors: {
  custom: {
    50: '#8161b0',
    500: '#45228e',
    950: '#000000',
  },
}
SCSS
$custom: #45228e;
$custom-light: #8161b0;
$custom-dark: #000000;
JSON
{
  "hex": "#45228e",
  "rgb": {
    "r": 69,
    "g": 34,
    "b": 142
  },
  "hsl": {
    "h": 259.444,
    "s": 61.364,
    "l": 34.51
  },
  "oklch": {
    "l": 0.37092,
    "c": 0.16502,
    "h": 290.9
  },
  "luminance": 0.04362
}

Semantic roles & 50–950 ramp

primary
#45228E
secondary
#98BA52
accent
#E443B0
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #45228E

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

Preview Lab → · Contrast checker → · Palette generator →

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