#45156B#45156B

#45156B is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.4% C 0.140 H 305.0°. Best body text is #FFFFFF at 13.35:1 contrast (WCAG AA passes).

Color values

HEX#45156B
RGBrgb(69, 21, 107)
HSLhsl(273, 67%, 25%)
HSVhsv(273, 80%, 42%)
CMYKcmyk(35.5%, 80.4%, 0%, 58%)
CIE-LABlab(19.49, 38.96, -40.18)
CIE-LCHlch(19.49, 55.97, 314.12°)
OKLaboklab(32.35% 0.08 -0.1144)
OKLCHoklch(32.35% 0.14 305)
XYZxyz(5.3756, 2.8631, 14.1765)
Luminance0.0286 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45156B #3B6B15
analogous
#1A156B #45156B #6B1566
triadic
#45156B #6B4515 #156B45
tetradic
#45156B #6B1A15 #3B6B15 #15666B
square
#45156B #6B1A15 #3B6B15 #15666B
split-complementary
#45156B #666B15 #156B1A
monochromatic
#10051A #240B38 #45156B #661F9E #8729D1

Accessibility & contrast

On white

13.35
#45156B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#45156B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45156B
13.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45156B#FFFFFF#000000##FFFFFF
##45156B1.0013.351.5713.35
#FFFFFF13.351.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E6D
Deuteranopia (green-blind)
#002F69
Tritanopia (blue-blind)
#3E2B3F
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #45156b;
/* rgb */ color: rgb(69, 21, 107);
/* oklch */ color: oklch(32.4% 0.140 305.0);
Tailwind
colors: {
  custom: {
    50: '#7d5896',
    500: '#45156b',
    950: '#000000',
  },
}
SCSS
$custom: #45156b;
$custom-light: #7d5896;
$custom-dark: #000000;
JSON
{
  "hex": "#45156b",
  "rgb": {
    "r": 69,
    "g": 21,
    "b": 107
  },
  "hsl": {
    "h": 273.488,
    "s": 67.188,
    "l": 25.098
  },
  "oklch": {
    "l": 0.32352,
    "c": 0.13964,
    "h": 305
  },
  "luminance": 0.02863
}

Semantic roles & 50–950 ramp

primary
#45156B
secondary
#68A23A
accent
#EA3E8A
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040D
muted
#7C797E

Preview Lab

Preview with #45156B

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

Preview Lab → · Contrast checker → · Palette generator →

#45156B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva