#45167D#45167D

#45167D is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.1% C 0.158 H 297.8°. Best body text is #FFFFFF at 12.62:1 contrast (WCAG AA passes).

Color values

HEX#45167D
RGBrgb(69, 22, 125)
HSLhsl(267, 70%, 29%)
HSVhsv(267, 82%, 49%)
CMYKcmyk(44.8%, 82.4%, 0%, 51%)
CIE-LABlab(21.28, 43.16, -48.84)
CIE-LCHlch(21.28, 65.18, 311.47°)
OKLaboklab(34.11% 0.0739 -0.1399)
OKLCHoklch(34.11% 0.158 297.8)
XYZxyz(6.4419, 3.3196, 19.6994)
Luminance0.0332 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45167D #4E7D16
analogous
#161A7D #45167D #79167D
triadic
#45167D #7D4516 #167D45
tetradic
#45167D #7D161A #4E7D16 #167D79
square
#45167D #7D161A #4E7D16 #167D79
split-complementary
#45167D #7D7916 #1A7D16
monochromatic
#0E051A #280D49 #45167D #621FB1 #7F32DB

Accessibility & contrast

On white

12.62
#45167D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#45167D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45167D
12.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45167D#FFFFFF#000000##FFFFFF
##45167D1.0012.621.6612.62
#FFFFFF12.621.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.621.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #45167d;
/* rgb */ color: rgb(69, 22, 125);
/* oklch */ color: oklch(34.1% 0.158 297.8);
Tailwind
colors: {
  custom: {
    50: '#7f5aa4',
    500: '#45167d',
    950: '#000000',
  },
}
SCSS
$custom: #45167d;
$custom-light: #7f5aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#45167d",
  "rgb": {
    "r": 69,
    "g": 22,
    "b": 125
  },
  "hsl": {
    "h": 267.379,
    "s": 70.068,
    "l": 28.824
  },
  "oklch": {
    "l": 0.34114,
    "c": 0.15817,
    "h": 297.8
  },
  "luminance": 0.0332
}

Semantic roles & 50–950 ramp

primary
#45167D
secondary
#7DB23D
accent
#ED3B9C
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #45167D

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

Preview Lab → · Contrast checker → · Palette generator →

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