#45229E#45229E

#45229E is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.6% C 0.184 H 287.2°. Best body text is #FFFFFF at 10.63:1 contrast (WCAG AA passes).

Color values

HEX#45229E
RGBrgb(69, 34, 158)
HSLhsl(257, 65%, 38%)
HSVhsv(257, 78%, 62%)
CMYKcmyk(56.3%, 78.5%, 0%, 38%)
CIE-LABlab(26.38, 46.86, -60.99)
CIE-LCHlch(26.38, 76.91, 307.53°)
OKLaboklab(38.65% 0.0543 -0.1756)
OKLCHoklch(38.65% 0.184 287.2)
XYZxyz(9.1960, 4.8774, 32.7980)
Luminance0.0488 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45229E #7B9E22
analogous
#223D9E #45229E #83229E
triadic
#45229E #9E4522 #229E45
tetradic
#45229E #9E223D #7B9E22 #229E83
square
#45229E #9E223D #7B9E22 #229E83
split-complementary
#45229E #9E8322 #3D9E22
monochromatic
#190C39 #2F176C #45229E #5B2DD0 #825EDC

Accessibility & contrast

On white

10.63
#45229E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#45229E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45229E
10.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45229E#FFFFFF#000000##FFFFFF
##45229E1.0010.631.9810.63
#FFFFFF10.631.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A1
Deuteranopia (green-blind)
#003B9C
Tritanopia (blue-blind)
#1D465F
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #45229e;
/* rgb */ color: rgb(69, 34, 158);
/* oklch */ color: oklch(38.6% 0.184 287.2);
Tailwind
colors: {
  custom: {
    50: '#8362bc',
    500: '#45229e',
    950: '#000000',
  },
}
SCSS
$custom: #45229e;
$custom-light: #8362bc;
$custom-dark: #000000;
JSON
{
  "hex": "#45229e",
  "rgb": {
    "r": 69,
    "g": 34,
    "b": 158
  },
  "hsl": {
    "h": 256.935,
    "s": 64.583,
    "l": 37.647
  },
  "oklch": {
    "l": 0.38649,
    "c": 0.18377,
    "h": 287.2
  },
  "luminance": 0.04878
}

Semantic roles & 50–950 ramp

primary
#45229E
secondary
#A4C15B
accent
#E840B8
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0512
muted
#7D7A81

Preview Lab

Preview with #45229E

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

Preview Lab → · Contrast checker → · Palette generator →

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