#45196E#45196E

#45196E is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.1% C 0.138 H 303.0°. Best body text is #FFFFFF at 12.99:1 contrast (WCAG AA passes).

Color values

HEX#45196E
RGBrgb(69, 25, 110)
HSLhsl(271, 63%, 26%)
HSVhsv(271, 77%, 43%)
CMYKcmyk(37.3%, 77.3%, 0%, 56.9%)
CIE-LABlab(20.39, 37.90, -40.67)
CIE-LCHlch(20.39, 55.60, 312.98°)
OKLaboklab(33.07% 0.0753 -0.1159)
OKLCHoklch(33.07% 0.138 303)
XYZxyz(5.6157, 3.0863, 15.0487)
Luminance0.0309 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45196E #426E19
analogous
#1B196E #45196E #6E196D
triadic
#45196E #6E4519 #196E45
tetradic
#45196E #6E1B19 #426E19 #196D6E
square
#45196E #6E1B19 #426E19 #196D6E
split-complementary
#45196E #6D6E19 #196E1B
monochromatic
#100619 #260E3C #45196E #6424A0 #8431D0

Accessibility & contrast

On white

12.99
#45196E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#45196E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45196E
12.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45196E#FFFFFF#000000##FFFFFF
##45196E1.0012.991.6212.99
#FFFFFF12.991.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003070
Deuteranopia (green-blind)
#00316C
Tritanopia (blue-blind)
#3D2E42
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #45196e;
/* rgb */ color: rgb(69, 25, 110);
/* oklch */ color: oklch(33.1% 0.138 303.0);
Tailwind
colors: {
  custom: {
    50: '#7d5a98',
    500: '#45196e',
    950: '#000000',
  },
}
SCSS
$custom: #45196e;
$custom-light: #7d5a98;
$custom-dark: #000000;
JSON
{
  "hex": "#45196e",
  "rgb": {
    "r": 69,
    "g": 25,
    "b": 110
  },
  "hsl": {
    "h": 271.059,
    "s": 62.963,
    "l": 26.471
  },
  "oklch": {
    "l": 0.33066,
    "c": 0.13822,
    "h": 303
  },
  "luminance": 0.03086
}

Semantic roles & 50–950 ramp

primary
#45196E
secondary
#70A33F
accent
#E64291
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #45196E

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

Preview Lab → · Contrast checker → · Palette generator →

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