#45177D#45177D

#45177D is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.2% C 0.157 H 297.7°. Best body text is #FFFFFF at 12.56:1 contrast (WCAG AA passes).

Color values

HEX#45177D
RGBrgb(69, 23, 125)
HSLhsl(267, 69%, 29%)
HSVhsv(267, 82%, 49%)
CMYKcmyk(44.8%, 81.6%, 0%, 51%)
CIE-LABlab(21.43, 42.74, -48.60)
CIE-LCHlch(21.43, 64.72, 311.33°)
OKLaboklab(34.22% 0.0731 -0.1392)
OKLCHoklch(34.22% 0.157 297.7)
XYZxyz(6.4613, 3.3585, 19.7059)
Luminance0.0336 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45177D #4F7D17
analogous
#171C7D #45177D #78177D
triadic
#45177D #7D4517 #177D45
tetradic
#45177D #7D171C #4F7D17 #177D78
square
#45177D #7D171C #4F7D17 #177D78
split-complementary
#45177D #7D7817 #1C7D17
monochromatic
#0E051A #280D49 #45177D #6221B1 #7F35DA

Accessibility & contrast

On white

12.56
#45177D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#45177D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45177D
12.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45177D#FFFFFF#000000##FFFFFF
##45177D1.0012.561.6712.56
#FFFFFF12.561.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.561.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #45177d;
/* rgb */ color: rgb(69, 23, 125);
/* oklch */ color: oklch(34.2% 0.157 297.7);
Tailwind
colors: {
  custom: {
    50: '#7f5aa4',
    500: '#45177d',
    950: '#000000',
  },
}
SCSS
$custom: #45177d;
$custom-light: #7f5aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#45177d",
  "rgb": {
    "r": 69,
    "g": 23,
    "b": 125
  },
  "hsl": {
    "h": 267.059,
    "s": 68.919,
    "l": 29.02
  },
  "oklch": {
    "l": 0.34215,
    "c": 0.15718,
    "h": 297.7
  },
  "luminance": 0.03359
}

Semantic roles & 50–950 ramp

primary
#45177D
secondary
#7EB23E
accent
#EC3C9D
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #45177D

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

Preview Lab → · Contrast checker → · Palette generator →

#45177D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva