#45156F#45156F

#45156F is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.7% C 0.144 H 303.3°. Best body text is #FFFFFF at 13.21:1 contrast (WCAG AA passes).

Color values

HEX#45156F
RGBrgb(69, 21, 111)
HSLhsl(272, 68%, 26%)
HSVhsv(272, 81%, 44%)
CMYKcmyk(37.8%, 81.1%, 0%, 56.5%)
CIE-LABlab(19.84, 39.98, -42.21)
CIE-LCHlch(19.84, 58.14, 313.44°)
OKLaboklab(32.71% 0.079 -0.1204)
OKLCHoklch(32.71% 0.144 303.3)
XYZxyz(5.5910, 2.9492, 15.3106)
Luminance0.0295 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45156F #3F6F15
analogous
#18156F #45156F #6F156C
triadic
#45156F #6F4515 #156F45
tetradic
#45156F #6F1815 #3F6F15 #156C6F
square
#45156F #6F1815 #3F6F15 #156C6F
split-complementary
#45156F #6C6F15 #156F18
monochromatic
#10051A #250B3C #45156F #651FA2 #8528D6

Accessibility & contrast

On white

13.21
#45156F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#45156F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45156F
13.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45156F#FFFFFF#000000##FFFFFF
##45156F1.0013.211.5913.21
#FFFFFF13.211.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.211.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: #45156f;
/* rgb */ color: rgb(69, 21, 111);
/* oklch */ color: oklch(32.7% 0.144 303.3);
Tailwind
colors: {
  custom: {
    50: '#7d5999',
    500: '#45156f',
    950: '#000000',
  },
}
SCSS
$custom: #45156f;
$custom-light: #7d5999;
$custom-dark: #000000;
JSON
{
  "hex": "#45156f",
  "rgb": {
    "r": 69,
    "g": 21,
    "b": 111
  },
  "hsl": {
    "h": 272,
    "s": 68.182,
    "l": 25.882
  },
  "oklch": {
    "l": 0.32709,
    "c": 0.14398,
    "h": 303.3
  },
  "luminance": 0.02949
}

Semantic roles & 50–950 ramp

primary
#45156F
secondary
#6CA53A
accent
#EB3D8E
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #45156F

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

Preview Lab → · Contrast checker → · Palette generator →

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