#45157B#45157B

#45157B is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.8% C 0.157 H 298.7°. Best body text is #FFFFFF at 12.76:1 contrast (WCAG AA passes).

Color values

HEX#45157B
RGBrgb(69, 21, 123)
HSLhsl(268, 71%, 28%)
HSVhsv(268, 83%, 48%)
CMYKcmyk(43.9%, 82.9%, 0%, 51.8%)
CIE-LABlab(20.95, 43.05, -48.11)
CIE-LCHlch(20.95, 64.56, 311.83°)
OKLaboklab(33.82% 0.0753 -0.1377)
OKLCHoklch(33.82% 0.157 298.7)
XYZxyz(6.2966, 3.2315, 19.0270)
Luminance0.0323 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45157B #4B7B15
analogous
#15187B #45157B #78157B
triadic
#45157B #7B4515 #157B45
tetradic
#45157B #7B1518 #4B7B15 #157B78
square
#45157B #7B1518 #4B7B15 #157B78
split-complementary
#45157B #7B7815 #187B15
monochromatic
#0F041A #280C47 #45157B #621EAF #802FDB

Accessibility & contrast

On white

12.76
#45157B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #45157B
12.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45157B#FFFFFF#000000##FFFFFF
##45157B1.0012.761.6512.76
#FFFFFF12.761.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327E
Deuteranopia (green-blind)
#003179
Tritanopia (blue-blind)
#373248
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #45157b;
/* rgb */ color: rgb(69, 21, 123);
/* oklch */ color: oklch(33.8% 0.157 298.7);
Tailwind
colors: {
  custom: {
    50: '#7f59a2',
    500: '#45157b',
    950: '#000000',
  },
}
SCSS
$custom: #45157b;
$custom-light: #7f59a2;
$custom-dark: #000000;
JSON
{
  "hex": "#45157b",
  "rgb": {
    "r": 69,
    "g": 21,
    "b": 123
  },
  "hsl": {
    "h": 268.235,
    "s": 70.833,
    "l": 28.235
  },
  "oklch": {
    "l": 0.33824,
    "c": 0.15696,
    "h": 298.7
  },
  "luminance": 0.03232
}

Semantic roles & 50–950 ramp

primary
#45157B
secondary
#79B03B
accent
#EE3A99
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #45157B

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

Preview Lab → · Contrast checker → · Palette generator →

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