#45166E#45166E

#45166E is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.7% C 0.142 H 303.5°. Best body text is #FFFFFF at 13.18:1 contrast (WCAG AA passes).

Color values

HEX#45166E
RGBrgb(69, 22, 110)
HSLhsl(272, 67%, 26%)
HSVhsv(272, 80%, 43%)
CMYKcmyk(37.3%, 80%, 0%, 56.9%)
CIE-LABlab(19.90, 39.29, -41.46)
CIE-LCHlch(19.90, 57.12, 313.46°)
OKLaboklab(32.73% 0.0783 -0.1182)
OKLCHoklch(32.73% 0.142 303.5)
XYZxyz(5.5550, 2.9648, 15.0284)
Luminance0.0296 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45166E #3F6E16
analogous
#19166E #45166E #6E166B
triadic
#45166E #6E4516 #166E45
tetradic
#45166E #6E1916 #3F6E16 #166B6E
square
#45166E #6E1916 #3F6E16 #166B6E
split-complementary
#45166E #6B6E16 #166E19
monochromatic
#10051A #250C3B #45166E #6520A1 #852AD4

Accessibility & contrast

On white

13.18
#45166E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#45166E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45166E
13.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45166E#FFFFFF#000000##FFFFFF
##45166E1.0013.181.5913.18
#FFFFFF13.181.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F70
Deuteranopia (green-blind)
#00306C
Tritanopia (blue-blind)
#3D2D41
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #45166e;
/* rgb */ color: rgb(69, 22, 110);
/* oklch */ color: oklch(32.7% 0.142 303.5);
Tailwind
colors: {
  custom: {
    50: '#7d5998',
    500: '#45166e',
    950: '#000000',
  },
}
SCSS
$custom: #45166e;
$custom-light: #7d5998;
$custom-dark: #000000;
JSON
{
  "hex": "#45166e",
  "rgb": {
    "r": 69,
    "g": 22,
    "b": 110
  },
  "hsl": {
    "h": 272.045,
    "s": 66.667,
    "l": 25.882
  },
  "oklch": {
    "l": 0.32726,
    "c": 0.14177,
    "h": 303.5
  },
  "luminance": 0.02965
}

Semantic roles & 50–950 ramp

primary
#45166E
secondary
#6CA43C
accent
#EA3E8E
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #45166E

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

Preview Lab → · Contrast checker → · Palette generator →

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