#45157E#45157E

#45157E is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.1% C 0.160 H 297.6°. Best body text is #FFFFFF at 12.64:1 contrast (WCAG AA passes).

Color values

HEX#45157E
RGBrgb(69, 21, 126)
HSLhsl(267, 71%, 29%)
HSVhsv(267, 83%, 49%)
CMYKcmyk(45.2%, 83.3%, 0%, 50.6%)
CIE-LABlab(21.24, 43.83, -49.55)
CIE-LCHlch(21.24, 66.15, 311.50°)
OKLaboklab(34.11% 0.0743 -0.1419)
OKLCHoklch(34.11% 0.16 297.6)
XYZxyz(6.4873, 3.3078, 20.0313)
Luminance0.0331 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45157E #4E7E15
analogous
#15197E #45157E #7A157E
triadic
#45157E #7E4515 #157E45
tetradic
#45157E #7E1519 #4E7E15 #157E7A
square
#45157E #7E1519 #4E7E15 #157E7A
split-complementary
#45157E #7E7A15 #197E15
monochromatic
#0E041A #280C4A #45157E #621EB2 #7F31DD

Accessibility & contrast

On white

12.64
#45157E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#45157E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45157E
12.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45157E#FFFFFF#000000##FFFFFF
##45157E1.0012.641.6612.64
#FFFFFF12.641.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003381
Deuteranopia (green-blind)
#00327C
Tritanopia (blue-blind)
#36334A
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #45157e;
/* rgb */ color: rgb(69, 21, 126);
/* oklch */ color: oklch(34.1% 0.160 297.6);
Tailwind
colors: {
  custom: {
    50: '#7f59a4',
    500: '#45157e',
    950: '#000000',
  },
}
SCSS
$custom: #45157e;
$custom-light: #7f59a4;
$custom-dark: #000000;
JSON
{
  "hex": "#45157e",
  "rgb": {
    "r": 69,
    "g": 21,
    "b": 126
  },
  "hsl": {
    "h": 267.429,
    "s": 71.429,
    "l": 28.824
  },
  "oklch": {
    "l": 0.34113,
    "c": 0.1602,
    "h": 297.6
  },
  "luminance": 0.03308
}

Semantic roles & 50–950 ramp

primary
#45157E
secondary
#7DB33C
accent
#EE3A9C
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #45157E

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

Preview Lab → · Contrast checker → · Palette generator →

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