#45147D#45147D

#45147D is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.9% C 0.160 H 298.1°. Best body text is #FFFFFF at 12.73:1 contrast (WCAG AA passes).

Color values

HEX#45147D
RGBrgb(69, 20, 125)
HSLhsl(268, 72%, 28%)
HSVhsv(268, 84%, 49%)
CMYKcmyk(44.8%, 84%, 0%, 51%)
CIE-LABlab(21.00, 43.97, -49.29)
CIE-LCHlch(21.00, 66.06, 311.73°)
OKLaboklab(33.92% 0.0754 -0.1412)
OKLCHoklch(33.92% 0.16 298.1)
XYZxyz(6.4051, 3.2461, 19.6872)
Luminance0.0325 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45147D #4C7D14
analogous
#14177D #45147D #79147D
triadic
#45147D #7D4514 #147D45
tetradic
#45147D #7D1417 #4C7D14 #147D79
square
#45147D #7D1417 #4C7D14 #147D79
split-complementary
#45147D #7D7914 #177D14
monochromatic
#0F041A #280C48 #45147D #621CB2 #802EDE

Accessibility & contrast

On white

12.73
#45147D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#45147D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45147D
12.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45147D#FFFFFF#000000##FFFFFF
##45147D1.0012.731.6512.73
#FFFFFF12.731.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003380
Deuteranopia (green-blind)
#00317B
Tritanopia (blue-blind)
#363249
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #45147d;
/* rgb */ color: rgb(69, 20, 125);
/* oklch */ color: oklch(33.9% 0.160 298.1);
Tailwind
colors: {
  custom: {
    50: '#7f59a4',
    500: '#45147d',
    950: '#000000',
  },
}
SCSS
$custom: #45147d;
$custom-light: #7f59a4;
$custom-dark: #000000;
JSON
{
  "hex": "#45147d",
  "rgb": {
    "r": 69,
    "g": 20,
    "b": 125
  },
  "hsl": {
    "h": 268,
    "s": 72.414,
    "l": 28.431
  },
  "oklch": {
    "l": 0.33922,
    "c": 0.16005,
    "h": 298.1
  },
  "luminance": 0.03246
}

Semantic roles & 50–950 ramp

primary
#45147D
secondary
#7AB23A
accent
#EF399A
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #45147D

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

Preview Lab → · Contrast checker → · Palette generator →

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