#45117E#45117E

#45117E is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.8% C 0.164 H 298.1°. Best body text is #FFFFFF at 12.85:1 contrast (WCAG AA passes).

Color values

HEX#45117E
RGBrgb(69, 17, 126)
HSLhsl(269, 76%, 28%)
HSVhsv(269, 87%, 49%)
CMYKcmyk(45.2%, 86.5%, 0%, 50.6%)
CIE-LABlab(20.72, 45.34, -50.39)
CIE-LCHlch(20.72, 67.79, 311.98°)
OKLaboklab(33.76% 0.0772 -0.1444)
OKLCHoklch(33.76% 0.164 298.1)
XYZxyz(6.4196, 3.1724, 20.0087)
Luminance0.0317 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45117E #4A7E11
analogous
#11137E #45117E #7B117E
triadic
#45117E #7E4511 #117E45
tetradic
#45117E #7E1113 #4A7E11 #117E7B
square
#45117E #7E1113 #4A7E11 #117E7B
split-complementary
#45117E #7E7B11 #137E11
monochromatic
#0F041B #270A48 #45117E #6318B4 #8027E2

Accessibility & contrast

On white

12.85
#45117E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#45117E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45117E
12.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45117E#FFFFFF#000000##FFFFFF
##45117E1.0012.851.6312.85
#FFFFFF12.851.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003281
Deuteranopia (green-blind)
#00317C
Tritanopia (blue-blind)
#36324A
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #45117e;
/* rgb */ color: rgb(69, 17, 126);
/* oklch */ color: oklch(33.8% 0.164 298.1);
Tailwind
colors: {
  custom: {
    50: '#8058a4',
    500: '#45117e',
    950: '#000000',
  },
}
SCSS
$custom: #45117e;
$custom-light: #8058a4;
$custom-dark: #000000;
JSON
{
  "hex": "#45117e",
  "rgb": {
    "r": 69,
    "g": 17,
    "b": 126
  },
  "hsl": {
    "h": 268.624,
    "s": 76.224,
    "l": 28.039
  },
  "oklch": {
    "l": 0.33757,
    "c": 0.16369,
    "h": 298.1
  },
  "luminance": 0.03172
}

Semantic roles & 50–950 ramp

primary
#45117E
secondary
#78B437
accent
#F33598
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #45117E

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

Preview Lab → · Contrast checker → · Palette generator →

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