#45166F#45166F

#45166F is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.8% C 0.143 H 303.1°. Best body text is #FFFFFF at 13.15:1 contrast (WCAG AA passes).

Color values

HEX#45166F
RGBrgb(69, 22, 111)
HSLhsl(272, 67%, 26%)
HSVhsv(272, 80%, 44%)
CMYKcmyk(37.8%, 80.2%, 0%, 56.5%)
CIE-LABlab(19.99, 39.54, -41.96)
CIE-LCHlch(19.99, 57.66, 313.30°)
OKLaboklab(32.82% 0.0781 -0.1197)
OKLCHoklch(32.82% 0.143 303.1)
XYZxyz(5.6097, 2.9867, 15.3168)
Luminance0.0299 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45166F #406F16
analogous
#18166F #45166F #6F166C
triadic
#45166F #6F4516 #166F45
tetradic
#45166F #6F1816 #406F16 #166C6F
square
#45166F #6F1816 #406F16 #166C6F
split-complementary
#45166F #6C6F16 #166F18
monochromatic
#10051A #250C3C #45166F #6520A2 #842BD5

Accessibility & contrast

On white

13.15
#45166F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#45166F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45166F
13.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45166F#FFFFFF#000000##FFFFFF
##45166F1.0013.151.6013.15
#FFFFFF13.151.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F71
Deuteranopia (green-blind)
#00306D
Tritanopia (blue-blind)
#3C2D42
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #45166f;
/* rgb */ color: rgb(69, 22, 111);
/* oklch */ color: oklch(32.8% 0.143 303.1);
Tailwind
colors: {
  custom: {
    50: '#7d5999',
    500: '#45166f',
    950: '#000000',
  },
}
SCSS
$custom: #45166f;
$custom-light: #7d5999;
$custom-dark: #000000;
JSON
{
  "hex": "#45166f",
  "rgb": {
    "r": 69,
    "g": 22,
    "b": 111
  },
  "hsl": {
    "h": 271.685,
    "s": 66.917,
    "l": 26.078
  },
  "oklch": {
    "l": 0.32815,
    "c": 0.14287,
    "h": 303.1
  },
  "luminance": 0.02987
}

Semantic roles & 50–950 ramp

primary
#45166F
secondary
#6DA53C
accent
#EA3E8F
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #45166F

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

Preview Lab → · Contrast checker → · Palette generator →

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