#45177F#45177F

#45177F is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.4% C 0.159 H 297.0°. Best body text is #FFFFFF at 12.49:1 contrast (WCAG AA passes).

Color values

HEX#45177F
RGBrgb(69, 23, 127)
HSLhsl(267, 69%, 29%)
HSVhsv(267, 82%, 50%)
CMYKcmyk(45.7%, 81.9%, 0%, 50.2%)
CIE-LABlab(21.62, 43.27, -49.56)
CIE-LCHlch(21.62, 65.79, 311.12°)
OKLaboklab(34.41% 0.0724 -0.142)
OKLCHoklch(34.41% 0.159 297)
XYZxyz(6.5904, 3.4102, 20.3856)
Luminance0.0341 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45177F #517F17
analogous
#171D7F #45177F #79177F
triadic
#45177F #7F4517 #177F45
tetradic
#45177F #7F171D #517F17 #177F79
square
#45177F #7F171D #517F17 #177F79
split-complementary
#45177F #7F7917 #1D7F17
monochromatic
#0E051A #290E4B #45177F #6120B3 #7F36DB

Accessibility & contrast

On white

12.49
#45177F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#45177F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45177F
12.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45177F#FFFFFF#000000##FFFFFF
##45177F1.0012.491.6812.49
#FFFFFF12.491.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003482
Deuteranopia (green-blind)
#00327D
Tritanopia (blue-blind)
#35344B
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #45177f;
/* rgb */ color: rgb(69, 23, 127);
/* oklch */ color: oklch(34.4% 0.159 297.0);
Tailwind
colors: {
  custom: {
    50: '#7f5aa5',
    500: '#45177f',
    950: '#000000',
  },
}
SCSS
$custom: #45177f;
$custom-light: #7f5aa5;
$custom-dark: #000000;
JSON
{
  "hex": "#45177f",
  "rgb": {
    "r": 69,
    "g": 23,
    "b": 127
  },
  "hsl": {
    "h": 266.538,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.34406,
    "c": 0.15937,
    "h": 297
  },
  "luminance": 0.0341
}

Semantic roles & 50–950 ramp

primary
#45177F
secondary
#80B43E
accent
#EC3C9E
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #45177F

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

Preview Lab → · Contrast checker → · Palette generator →

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