#45147F#45147F

#45147F is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.1% C 0.162 H 297.4°. Best body text is #FFFFFF at 12.65:1 contrast (WCAG AA passes).

Color values

HEX#45147F
RGBrgb(69, 20, 127)
HSLhsl(267, 73%, 29%)
HSVhsv(267, 84%, 50%)
CMYKcmyk(45.7%, 84.3%, 0%, 50.2%)
CIE-LABlab(21.20, 44.49, -50.24)
CIE-LCHlch(21.20, 67.11, 311.52°)
OKLaboklab(34.12% 0.0747 -0.144)
OKLCHoklch(34.12% 0.162 297.4)
XYZxyz(6.5342, 3.2977, 20.3668)
Luminance0.0330 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45147F #4E7F14
analogous
#14187F #45147F #7B147F
triadic
#45147F #7F4514 #147F45
tetradic
#45147F #7F1418 #4E7F14 #147F7B
square
#45147F #7F1418 #4E7F14 #147F7B
split-complementary
#45147F #7F7B14 #187F14
monochromatic
#0E041A #280C4A #45147F #621CB4 #7F2FDE

Accessibility & contrast

On white

12.65
#45147F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#45147F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45147F
12.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45147F#FFFFFF#000000##FFFFFF
##45147F1.0012.651.6612.65
#FFFFFF12.651.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003382
Deuteranopia (green-blind)
#00327D
Tritanopia (blue-blind)
#35334B
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #45147f;
/* rgb */ color: rgb(69, 20, 127);
/* oklch */ color: oklch(34.1% 0.162 297.4);
Tailwind
colors: {
  custom: {
    50: '#7f59a5',
    500: '#45147f',
    950: '#000000',
  },
}
SCSS
$custom: #45147f;
$custom-light: #7f59a5;
$custom-dark: #000000;
JSON
{
  "hex": "#45147f",
  "rgb": {
    "r": 69,
    "g": 20,
    "b": 127
  },
  "hsl": {
    "h": 267.477,
    "s": 72.789,
    "l": 28.824
  },
  "oklch": {
    "l": 0.34116,
    "c": 0.16219,
    "h": 297.4
  },
  "luminance": 0.03298
}

Semantic roles & 50–950 ramp

primary
#45147F
secondary
#7DB43B
accent
#EF389C
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #45147F

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

Preview Lab → · Contrast checker → · Palette generator →

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