#45228F#45228F

#45228F is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.2% C 0.166 H 290.6°. Best body text is #FFFFFF at 11.18:1 contrast (WCAG AA passes).

Color values

HEX#45228F
RGBrgb(69, 34, 143)
HSLhsl(259, 62%, 35%)
HSVhsv(259, 76%, 56%)
CMYKcmyk(51.7%, 76.2%, 0%, 43.9%)
CIE-LABlab(24.93, 42.55, -54.16)
CIE-LCHlch(24.93, 68.88, 308.16°)
OKLaboklab(37.19% 0.0585 -0.1556)
OKLCHoklch(37.19% 0.166 290.6)
XYZxyz(7.9828, 4.3921, 26.4084)
Luminance0.0439 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45228F #6C8F22
analogous
#22368F #45228F #7C228F
triadic
#45228F #8F4522 #228F45
tetradic
#45228F #8F2236 #6C8F22 #228F7C
square
#45228F #8F2236 #6C8F22 #228F7C
split-complementary
#45228F #8F7C22 #368F22
monochromatic
#150A2C #2D165E #45228F #5D2EC0 #7E55D7

Accessibility & contrast

On white

11.18
#45228F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#45228F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45228F
11.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45228F#FFFFFF#000000##FFFFFF
##45228F1.0011.181.8811.18
#FFFFFF11.181.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.181.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #45228f;
/* rgb */ color: rgb(69, 34, 143);
/* oklch */ color: oklch(37.2% 0.166 290.6);
Tailwind
colors: {
  custom: {
    50: '#8161b1',
    500: '#45228f',
    950: '#000000',
  },
}
SCSS
$custom: #45228f;
$custom-light: #8161b1;
$custom-dark: #000000;
JSON
{
  "hex": "#45228f",
  "rgb": {
    "r": 69,
    "g": 34,
    "b": 143
  },
  "hsl": {
    "h": 259.266,
    "s": 61.582,
    "l": 34.706
  },
  "oklch": {
    "l": 0.37187,
    "c": 0.16621,
    "h": 290.6
  },
  "luminance": 0.04392
}

Semantic roles & 50–950 ramp

primary
#45228F
secondary
#99BA52
accent
#E543B1
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #45228F

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

Preview Lab → · Contrast checker → · Palette generator →

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