#45229F#45229F

#45229F is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.7% C 0.185 H 287.0°. Best body text is #FFFFFF at 10.59:1 contrast (WCAG AA passes).

Color values

HEX#45229F
RGBrgb(69, 34, 159)
HSLhsl(257, 65%, 38%)
HSVhsv(257, 79%, 62%)
CMYKcmyk(56.6%, 78.6%, 0%, 37.6%)
CIE-LABlab(26.48, 47.14, -61.44)
CIE-LCHlch(26.48, 77.44, 307.50°)
OKLaboklab(38.75% 0.054 -0.1769)
OKLCHoklch(38.75% 0.185 287)
XYZxyz(9.2824, 4.9120, 33.2532)
Luminance0.0491 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45229F #7C9F22
analogous
#223D9F #45229F #83229F
triadic
#45229F #9F4522 #229F45
tetradic
#45229F #9F223D #7C9F22 #229F83
square
#45229F #9F223D #7C9F22 #229F83
split-complementary
#45229F #9F8322 #3D9F22
monochromatic
#190C3A #2F176D #45229F #5B2DD1 #825FDD

Accessibility & contrast

On white

10.59
#45229F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #45229F
10.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45229F#FFFFFF#000000##FFFFFF
##45229F1.0010.591.9810.59
#FFFFFF10.591.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A2
Deuteranopia (green-blind)
#003B9D
Tritanopia (blue-blind)
#1C4660
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #45229f;
/* rgb */ color: rgb(69, 34, 159);
/* oklch */ color: oklch(38.7% 0.185 287.0);
Tailwind
colors: {
  custom: {
    50: '#8362bd',
    500: '#45229f',
    950: '#000000',
  },
}
SCSS
$custom: #45229f;
$custom-light: #8362bd;
$custom-dark: #000000;
JSON
{
  "hex": "#45229f",
  "rgb": {
    "r": 69,
    "g": 34,
    "b": 159
  },
  "hsl": {
    "h": 256.8,
    "s": 64.767,
    "l": 37.843
  },
  "oklch": {
    "l": 0.38748,
    "c": 0.18492,
    "h": 287
  },
  "luminance": 0.04912
}

Semantic roles & 50–950 ramp

primary
#45229F
secondary
#A5C15B
accent
#E840B9
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0512
muted
#7D7A81

Preview Lab

Preview with #45229F

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

Preview Lab → · Contrast checker → · Palette generator →

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