#45228A#45228A

#45228A is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.7% C 0.160 H 291.9°. Best body text is #FFFFFF at 11.36:1 contrast (WCAG AA passes).

Color values

HEX#45228A
RGBrgb(69, 34, 138)
HSLhsl(260, 60%, 34%)
HSVhsv(260, 75%, 54%)
CMYKcmyk(50%, 75.4%, 0%, 45.9%)
CIE-LABlab(24.46, 41.12, -51.81)
CIE-LCHlch(24.46, 66.15, 308.44°)
OKLaboklab(36.72% 0.0598 -0.1487)
OKLCHoklch(36.72% 0.16 291.9)
XYZxyz(7.6124, 4.2440, 24.4579)
Luminance0.0424 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45228A #678A22
analogous
#22338A #45228A #79228A
triadic
#45228A #8A4522 #228A45
tetradic
#45228A #8A2233 #678A22 #228A79
square
#45228A #8A2233 #678A22 #228A79
split-complementary
#45228A #8A7922 #338A22
monochromatic
#140A28 #2C1659 #45228A #5E2EBB #7E52D4

Accessibility & contrast

On white

11.36
#45228A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #45228A
11.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45228A#FFFFFF#000000##FFFFFF
##45228A1.0011.361.8511.36
#FFFFFF11.361.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8D
Deuteranopia (green-blind)
#003888
Tritanopia (blue-blind)
#2F3E54
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #45228a;
/* rgb */ color: rgb(69, 34, 138);
/* oklch */ color: oklch(36.7% 0.160 291.9);
Tailwind
colors: {
  custom: {
    50: '#8061ad',
    500: '#45228a',
    950: '#000000',
  },
}
SCSS
$custom: #45228a;
$custom-light: #8061ad;
$custom-dark: #000000;
JSON
{
  "hex": "#45228a",
  "rgb": {
    "r": 69,
    "g": 34,
    "b": 138
  },
  "hsl": {
    "h": 260.192,
    "s": 60.465,
    "l": 33.725
  },
  "oklch": {
    "l": 0.36716,
    "c": 0.16026,
    "h": 291.9
  },
  "luminance": 0.04244
}

Semantic roles & 50–950 ramp

primary
#45228A
secondary
#95B850
accent
#E444AE
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #45228A

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

Preview Lab → · Contrast checker → · Palette generator →

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