#45156C#45156C

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

Color values

HEX#45156C
RGBrgb(69, 21, 108)
HSLhsl(273, 67%, 25%)
HSVhsv(273, 81%, 42%)
CMYKcmyk(36.1%, 80.6%, 0%, 57.6%)
CIE-LABlab(19.57, 39.22, -40.69)
CIE-LCHlch(19.57, 56.51, 313.94°)
OKLaboklab(32.44% 0.0798 -0.1159)
OKLCHoklch(32.44% 0.141 304.5)
XYZxyz(5.4286, 2.8843, 14.4552)
Luminance0.0288 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45156C #3C6C15
analogous
#19156C #45156C #6C1568
triadic
#45156C #6C4515 #156C45
tetradic
#45156C #6C1915 #3C6C15 #15686C
square
#45156C #6C1915 #3C6C15 #15686C
split-complementary
#45156C #686C15 #156C19
monochromatic
#10051A #240B39 #45156C #661F9F #8629D2

Accessibility & contrast

On white

13.32
#45156C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#45156C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45156C
13.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45156C#FFFFFF#000000##FFFFFF
##45156C1.0013.321.5813.32
#FFFFFF13.321.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E6E
Deuteranopia (green-blind)
#002F6A
Tritanopia (blue-blind)
#3D2B40
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #45156c;
/* rgb */ color: rgb(69, 21, 108);
/* oklch */ color: oklch(32.4% 0.141 304.5);
Tailwind
colors: {
  custom: {
    50: '#7d5897',
    500: '#45156c',
    950: '#000000',
  },
}
SCSS
$custom: #45156c;
$custom-light: #7d5897;
$custom-dark: #000000;
JSON
{
  "hex": "#45156c",
  "rgb": {
    "r": 69,
    "g": 21,
    "b": 108
  },
  "hsl": {
    "h": 273.103,
    "s": 67.442,
    "l": 25.294
  },
  "oklch": {
    "l": 0.32441,
    "c": 0.14073,
    "h": 304.5
  },
  "luminance": 0.02884
}

Semantic roles & 50–950 ramp

primary
#45156C
secondary
#69A33A
accent
#EA3D8B
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040D
muted
#7C797E

Preview Lab

Preview with #45156C

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

Preview Lab → · Contrast checker → · Palette generator →

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