#45157F#45157F

#45157F is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.2% C 0.161 H 297.3°. Best body text is #FFFFFF at 12.60:1 contrast (WCAG AA passes).

Color values

HEX#45157F
RGBrgb(69, 21, 127)
HSLhsl(267, 72%, 29%)
HSVhsv(267, 83%, 50%)
CMYKcmyk(45.7%, 83.5%, 0%, 50.2%)
CIE-LABlab(21.33, 44.09, -50.02)
CIE-LCHlch(21.33, 66.68, 311.40°)
OKLaboklab(34.21% 0.074 -0.1433)
OKLCHoklch(34.21% 0.161 297.3)
XYZxyz(6.5522, 3.3337, 20.3728)
Luminance0.0333 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45157F #4F7F15
analogous
#151A7F #45157F #7A157F
triadic
#45157F #7F4515 #157F45
tetradic
#45157F #7F151A #4F7F15 #157F7A
square
#45157F #7F151A #4F7F15 #157F7A
split-complementary
#45157F #7F7A15 #1A7F15
monochromatic
#0E041A #280C4A #45157F #621EB4 #7F31DD

Accessibility & contrast

On white

12.60
#45157F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#45157F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45157F
12.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45157F#FFFFFF#000000##FFFFFF
##45157F1.0012.601.6712.60
#FFFFFF12.601.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003482
Deuteranopia (green-blind)
#00327D
Tritanopia (blue-blind)
#35334B
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #45157f;
/* rgb */ color: rgb(69, 21, 127);
/* oklch */ color: oklch(34.2% 0.161 297.3);
Tailwind
colors: {
  custom: {
    50: '#7f5aa5',
    500: '#45157f',
    950: '#000000',
  },
}
SCSS
$custom: #45157f;
$custom-light: #7f5aa5;
$custom-dark: #000000;
JSON
{
  "hex": "#45157f",
  "rgb": {
    "r": 69,
    "g": 21,
    "b": 127
  },
  "hsl": {
    "h": 267.17,
    "s": 71.622,
    "l": 29.02
  },
  "oklch": {
    "l": 0.34209,
    "c": 0.16128,
    "h": 297.3
  },
  "luminance": 0.03334
}

Semantic roles & 50–950 ramp

primary
#45157F
secondary
#7EB43C
accent
#EE399C
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #45157F

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

Preview Lab → · Contrast checker → · Palette generator →

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