#45177A#45177A

#45177A is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.9% C 0.154 H 298.7°. Best body text is #FFFFFF at 12.68:1 contrast (WCAG AA passes).

Color values

HEX#45177A
RGBrgb(69, 23, 122)
HSLhsl(268, 68%, 28%)
HSVhsv(268, 81%, 48%)
CMYKcmyk(43.4%, 81.1%, 0%, 52.2%)
CIE-LABlab(21.14, 41.96, -47.15)
CIE-LCHlch(21.14, 63.12, 311.66°)
OKLaboklab(33.93% 0.074 -0.1349)
OKLCHoklch(33.93% 0.154 298.7)
XYZxyz(6.2726, 3.2830, 18.7118)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45177A #4C7A17
analogous
#171A7A #45177A #76177A
triadic
#45177A #7A4517 #177A45
tetradic
#45177A #7A171A #4C7A17 #177A76
square
#45177A #7A171A #4C7A17 #177A76
split-complementary
#45177A #7A7617 #1A7A17
monochromatic
#0F051A #280D47 #45177A #6221AD #8033D9

Accessibility & contrast

On white

12.68
#45177A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #45177A
12.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45177A#FFFFFF#000000##FFFFFF
##45177A1.0012.681.6612.68
#FFFFFF12.681.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337D
Deuteranopia (green-blind)
#003278
Tritanopia (blue-blind)
#383248
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #45177a;
/* rgb */ color: rgb(69, 23, 122);
/* oklch */ color: oklch(33.9% 0.154 298.7);
Tailwind
colors: {
  custom: {
    50: '#7f5aa1',
    500: '#45177a',
    950: '#000000',
  },
}
SCSS
$custom: #45177a;
$custom-light: #7f5aa1;
$custom-dark: #000000;
JSON
{
  "hex": "#45177a",
  "rgb": {
    "r": 69,
    "g": 23,
    "b": 122
  },
  "hsl": {
    "h": 267.879,
    "s": 68.276,
    "l": 28.431
  },
  "oklch": {
    "l": 0.33931,
    "c": 0.15388,
    "h": 298.7
  },
  "luminance": 0.03283
}

Semantic roles & 50–950 ramp

primary
#45177A
secondary
#7AAF3E
accent
#EB3D9A
background
#F8F5FA
surface
#EFE9F3
border
#CAC5CD
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #45177A

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

Preview Lab → · Contrast checker → · Palette generator →

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