#45228C#45228C

#45228C is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.9% C 0.163 H 291.4°. Best body text is #FFFFFF at 11.29:1 contrast (WCAG AA passes).

Color values

HEX#45228C
RGBrgb(69, 34, 140)
HSLhsl(260, 61%, 34%)
HSVhsv(260, 76%, 55%)
CMYKcmyk(50.7%, 75.7%, 0%, 45.1%)
CIE-LABlab(24.65, 41.69, -52.76)
CIE-LCHlch(24.65, 67.24, 308.32°)
OKLaboklab(36.9% 0.0593 -0.1514)
OKLCHoklch(36.9% 0.163 291.4)
XYZxyz(7.7586, 4.3024, 25.2275)
Luminance0.0430 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45228C #698C22
analogous
#22348C #45228C #7A228C
triadic
#45228C #8C4522 #228C45
tetradic
#45228C #8C2234 #698C22 #228C7A
square
#45228C #8C2234 #698C22 #228C7A
split-complementary
#45228C #8C7A22 #348C22
monochromatic
#140A2A #2D165B #45228C #5D2EBD #7E53D5

Accessibility & contrast

On white

11.29
#45228C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#45228C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45228C
11.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45228C#FFFFFF#000000##FFFFFF
##45228C1.0011.291.8611.29
#FFFFFF11.291.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8F
Deuteranopia (green-blind)
#00388A
Tritanopia (blue-blind)
#2D3E55
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #45228c;
/* rgb */ color: rgb(69, 34, 140);
/* oklch */ color: oklch(36.9% 0.163 291.4);
Tailwind
colors: {
  custom: {
    50: '#8061af',
    500: '#45228c',
    950: '#000000',
  },
}
SCSS
$custom: #45228c;
$custom-light: #8061af;
$custom-dark: #000000;
JSON
{
  "hex": "#45228c",
  "rgb": {
    "r": 69,
    "g": 34,
    "b": 140
  },
  "hsl": {
    "h": 259.811,
    "s": 60.92,
    "l": 34.118
  },
  "oklch": {
    "l": 0.36904,
    "c": 0.16264,
    "h": 291.4
  },
  "luminance": 0.04303
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #45228C

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

Preview Lab → · Contrast checker → · Palette generator →

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