#45228B#45228B

#45228B is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.8% C 0.161 H 291.7°. Best body text is #FFFFFF at 11.32:1 contrast (WCAG AA passes).

Color values

HEX#45228B
RGBrgb(69, 34, 139)
HSLhsl(260, 61%, 34%)
HSVhsv(260, 76%, 55%)
CMYKcmyk(50.4%, 75.5%, 0%, 45.5%)
CIE-LABlab(24.55, 41.41, -52.29)
CIE-LCHlch(24.55, 66.70, 308.38°)
OKLaboklab(36.81% 0.0596 -0.1501)
OKLCHoklch(36.81% 0.161 291.7)
XYZxyz(7.6852, 4.2731, 24.8409)
Luminance0.0427 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45228B #688B22
analogous
#22348B #45228B #7A228B
triadic
#45228B #8B4522 #228B45
tetradic
#45228B #8B2234 #688B22 #228B7A
square
#45228B #8B2234 #688B22 #228B7A
split-complementary
#45228B #8B7A22 #348B22
monochromatic
#140A29 #2D165A #45228B #5D2EBC #7E53D5

Accessibility & contrast

On white

11.32
#45228B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#45228B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45228B
11.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45228B#FFFFFF#000000##FFFFFF
##45228B1.0011.321.8511.32
#FFFFFF11.321.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8E
Deuteranopia (green-blind)
#003889
Tritanopia (blue-blind)
#2E3E55
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #45228b;
/* rgb */ color: rgb(69, 34, 139);
/* oklch */ color: oklch(36.8% 0.161 291.7);
Tailwind
colors: {
  custom: {
    50: '#8061ae',
    500: '#45228b',
    950: '#000000',
  },
}
SCSS
$custom: #45228b;
$custom-light: #8061ae;
$custom-dark: #000000;
JSON
{
  "hex": "#45228b",
  "rgb": {
    "r": 69,
    "g": 34,
    "b": 139
  },
  "hsl": {
    "h": 260,
    "s": 60.694,
    "l": 33.922
  },
  "oklch": {
    "l": 0.3681,
    "c": 0.16145,
    "h": 291.7
  },
  "luminance": 0.04273
}

Semantic roles & 50–950 ramp

primary
#45228B
secondary
#96B850
accent
#E444AF
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #45228B

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

Preview Lab → · Contrast checker → · Palette generator →

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