#45167A#45167A

#45167A is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.8% C 0.155 H 298.9°. Best body text is #FFFFFF at 12.74:1 contrast (WCAG AA passes).

Color values

HEX#45167A
RGBrgb(69, 22, 122)
HSLhsl(268, 69%, 28%)
HSVhsv(268, 82%, 48%)
CMYKcmyk(43.4%, 82%, 0%, 52.2%)
CIE-LABlab(21.00, 42.38, -47.39)
CIE-LCHlch(21.00, 63.58, 311.80°)
OKLaboklab(33.83% 0.0748 -0.1356)
OKLCHoklch(33.83% 0.155 298.9)
XYZxyz(6.2531, 3.2441, 18.7053)
Luminance0.0324 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45167A #4B7A16
analogous
#16197A #45167A #77167A
triadic
#45167A #7A4516 #167A45
tetradic
#45167A #7A1619 #4B7A16 #167A77
square
#45167A #7A1619 #4B7A16 #167A77
split-complementary
#45167A #7A7716 #197A16
monochromatic
#0F051A #280D46 #45167A #621FAE #8031DA

Accessibility & contrast

On white

12.74
#45167A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#45167A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45167A
12.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45167A#FFFFFF#000000##FFFFFF
##45167A1.0012.741.6512.74
#FFFFFF12.741.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327D
Deuteranopia (green-blind)
#003178
Tritanopia (blue-blind)
#383248
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #45167a;
/* rgb */ color: rgb(69, 22, 122);
/* oklch */ color: oklch(33.8% 0.155 298.9);
Tailwind
colors: {
  custom: {
    50: '#7f5aa1',
    500: '#45167a',
    950: '#000000',
  },
}
SCSS
$custom: #45167a;
$custom-light: #7f5aa1;
$custom-dark: #000000;
JSON
{
  "hex": "#45167a",
  "rgb": {
    "r": 69,
    "g": 22,
    "b": 122
  },
  "hsl": {
    "h": 268.2,
    "s": 69.444,
    "l": 28.235
  },
  "oklch": {
    "l": 0.33828,
    "c": 0.1549,
    "h": 298.9
  },
  "luminance": 0.03244
}

Semantic roles & 50–950 ramp

primary
#45167A
secondary
#79AF3D
accent
#EC3C99
background
#F8F5FA
surface
#EFE9F3
border
#CAC5CD
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #45167A

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

Preview Lab → · Contrast checker → · Palette generator →

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