#45177B#45177B

#45177B is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.0% C 0.155 H 298.4°. Best body text is #FFFFFF at 12.64:1 contrast (WCAG AA passes).

Color values

HEX#45177B
RGBrgb(69, 23, 123)
HSLhsl(268, 68%, 29%)
HSVhsv(268, 81%, 48%)
CMYKcmyk(43.9%, 81.3%, 0%, 51.8%)
CIE-LABlab(21.24, 42.22, -47.64)
CIE-LCHlch(21.24, 63.65, 311.55°)
OKLaboklab(34.03% 0.0737 -0.1363)
OKLCHoklch(34.03% 0.155 298.4)
XYZxyz(6.3349, 3.3080, 19.0398)
Luminance0.0331 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45177B #4D7B17
analogous
#171B7B #45177B #77177B
triadic
#45177B #7B4517 #177B45
tetradic
#45177B #7B171B #4D7B17 #177B77
square
#45177B #7B171B #4D7B17 #177B77
split-complementary
#45177B #7B7717 #1B7B17
monochromatic
#0E051A #280D47 #45177B #6221AF #8033D9

Accessibility & contrast

On white

12.64
#45177B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#45177B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45177B
12.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45177B#FFFFFF#000000##FFFFFF
##45177B1.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)
#00337E
Deuteranopia (green-blind)
#003279
Tritanopia (blue-blind)
#373349
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #45177b;
/* rgb */ color: rgb(69, 23, 123);
/* oklch */ color: oklch(34.0% 0.155 298.4);
Tailwind
colors: {
  custom: {
    50: '#7f5aa2',
    500: '#45177b',
    950: '#000000',
  },
}
SCSS
$custom: #45177b;
$custom-light: #7f5aa2;
$custom-dark: #000000;
JSON
{
  "hex": "#45177b",
  "rgb": {
    "r": 69,
    "g": 23,
    "b": 123
  },
  "hsl": {
    "h": 267.6,
    "s": 68.493,
    "l": 28.627
  },
  "oklch": {
    "l": 0.34025,
    "c": 0.15498,
    "h": 298.4
  },
  "luminance": 0.03308
}

Semantic roles & 50–950 ramp

primary
#45177B
secondary
#7BB03E
accent
#EB3C9B
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #45177B

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

Preview Lab → · Contrast checker → · Palette generator →

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