#45157C#45157C

#45157C is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.9% C 0.158 H 298.3°. Best body text is #FFFFFF at 12.72:1 contrast (WCAG AA passes).

Color values

HEX#45157C
RGBrgb(69, 21, 124)
HSLhsl(268, 71%, 28%)
HSVhsv(268, 83%, 49%)
CMYKcmyk(44.4%, 83.1%, 0%, 51.4%)
CIE-LABlab(21.04, 43.31, -48.59)
CIE-LCHlch(21.04, 65.09, 311.71°)
OKLaboklab(33.92% 0.075 -0.1391)
OKLCHoklch(33.92% 0.158 298.3)
XYZxyz(6.3596, 3.2567, 19.3584)
Luminance0.0326 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45157C #4C7C15
analogous
#15197C #45157C #78157C
triadic
#45157C #7C4515 #157C45
tetradic
#45157C #7C1519 #4C7C15 #157C78
square
#45157C #7C1519 #4C7C15 #157C78
split-complementary
#45157C #7C7815 #197C15
monochromatic
#0F041A #280C48 #45157C #621EB0 #8030DC

Accessibility & contrast

On white

12.72
#45157C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#45157C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45157C
12.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45157C#FFFFFF#000000##FFFFFF
##45157C1.0012.721.6512.72
#FFFFFF12.721.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337F
Deuteranopia (green-blind)
#00317A
Tritanopia (blue-blind)
#373249
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #45157c;
/* rgb */ color: rgb(69, 21, 124);
/* oklch */ color: oklch(33.9% 0.158 298.3);
Tailwind
colors: {
  custom: {
    50: '#7f59a3',
    500: '#45157c',
    950: '#000000',
  },
}
SCSS
$custom: #45157c;
$custom-light: #7f59a3;
$custom-dark: #000000;
JSON
{
  "hex": "#45157c",
  "rgb": {
    "r": 69,
    "g": 21,
    "b": 124
  },
  "hsl": {
    "h": 267.961,
    "s": 71.034,
    "l": 28.431
  },
  "oklch": {
    "l": 0.3392,
    "c": 0.15804,
    "h": 298.3
  },
  "luminance": 0.03257
}

Semantic roles & 50–950 ramp

primary
#45157C
secondary
#7AB13C
accent
#EE3A9A
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #45157C

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

Preview Lab → · Contrast checker → · Palette generator →

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