#45147A#45147A

#45147A is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.6% C 0.157 H 299.2°. Best body text is #FFFFFF at 12.85:1 contrast (WCAG AA passes).

Color values

HEX#45147A
RGBrgb(69, 20, 122)
HSLhsl(269, 72%, 28%)
HSVhsv(269, 84%, 48%)
CMYKcmyk(43.4%, 83.6%, 0%, 52.2%)
CIE-LABlab(20.71, 43.20, -47.86)
CIE-LCHlch(20.71, 64.47, 312.07°)
OKLaboklab(33.63% 0.0764 -0.1369)
OKLCHoklch(33.63% 0.157 299.2)
XYZxyz(6.2164, 3.1706, 18.6931)
Luminance0.0317 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45147A #497A14
analogous
#14167A #45147A #78147A
triadic
#45147A #7A4514 #147A45
tetradic
#45147A #7A1416 #497A14 #147A78
square
#45147A #7A1416 #497A14 #147A78
split-complementary
#45147A #7A7814 #167A14
monochromatic
#0F041A #270B45 #45147A #631DAF #812CDC

Accessibility & contrast

On white

12.85
#45147A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#45147A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45147A
12.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45147A#FFFFFF#000000##FFFFFF
##45147A1.0012.851.6312.85
#FFFFFF12.851.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327D
Deuteranopia (green-blind)
#003178
Tritanopia (blue-blind)
#383148
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #45147a;
/* rgb */ color: rgb(69, 20, 122);
/* oklch */ color: oklch(33.6% 0.157 299.2);
Tailwind
colors: {
  custom: {
    50: '#7f59a1',
    500: '#45147a',
    950: '#000000',
  },
}
SCSS
$custom: #45147a;
$custom-light: #7f59a1;
$custom-dark: #000000;
JSON
{
  "hex": "#45147a",
  "rgb": {
    "r": 69,
    "g": 20,
    "b": 122
  },
  "hsl": {
    "h": 268.824,
    "s": 71.831,
    "l": 27.843
  },
  "oklch": {
    "l": 0.33633,
    "c": 0.15684,
    "h": 299.2
  },
  "luminance": 0.03171
}

Semantic roles & 50–950 ramp

primary
#45147A
secondary
#77B03A
accent
#EF3997
background
#F8F5FA
surface
#EFE9F3
border
#CAC5CD
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #45147A

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

Preview Lab → · Contrast checker → · Palette generator →

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