#45217F#45217F

#45217F is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.6% C 0.148 H 295.3°. Best body text is #FFFFFF at 11.82:1 contrast (WCAG AA passes).

Color values

HEX#45217F
RGBrgb(69, 33, 127)
HSLhsl(263, 59%, 31%)
HSVhsv(263, 74%, 50%)
CMYKcmyk(45.7%, 74%, 0%, 50.2%)
CIE-LABlab(23.29, 38.51, -46.83)
CIE-LCHlch(23.29, 60.62, 309.43°)
OKLaboklab(35.58% 0.0633 -0.134)
OKLCHoklch(35.58% 0.148 295.3)
XYZxyz(6.8278, 3.8851, 20.4647)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45217F #5B7F21
analogous
#212C7F #45217F #74217F
triadic
#45217F #7F4521 #217F45
tetradic
#45217F #7F212C #5B7F21 #217F74
square
#45217F #7F212C #5B7F21 #217F74
split-complementary
#45217F #7F7421 #2C7F21
monochromatic
#10081E #2B144E #45217F #5F2EB0 #7E4AD0

Accessibility & contrast

On white

11.82
#45217F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#45217F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45217F
11.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45217F#FFFFFF#000000##FFFFFF
##45217F1.0011.821.7811.82
#FFFFFF11.821.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003882
Deuteranopia (green-blind)
#00367D
Tritanopia (blue-blind)
#35394E
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #45217f;
/* rgb */ color: rgb(69, 33, 127);
/* oklch */ color: oklch(35.6% 0.148 295.3);
Tailwind
colors: {
  custom: {
    50: '#7f60a5',
    500: '#45217f',
    950: '#000000',
  },
}
SCSS
$custom: #45217f;
$custom-light: #7f60a5;
$custom-dark: #000000;
JSON
{
  "hex": "#45217f",
  "rgb": {
    "r": 69,
    "g": 33,
    "b": 127
  },
  "hsl": {
    "h": 262.979,
    "s": 58.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.3558,
    "c": 0.14824,
    "h": 295.3
  },
  "luminance": 0.03885
}

Semantic roles & 50–950 ramp

primary
#45217F
secondary
#8AB24A
accent
#E246A6
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #45217F

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

Preview Lab → · Contrast checker → · Palette generator →

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