#45147B#45147B

#45147B is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.7% C 0.158 H 298.8°. Best body text is #FFFFFF at 12.81:1 contrast (WCAG AA passes).

Color values

HEX#45147B
RGBrgb(69, 20, 123)
HSLhsl(269, 72%, 28%)
HSVhsv(269, 84%, 48%)
CMYKcmyk(43.9%, 83.7%, 0%, 51.8%)
CIE-LABlab(20.81, 43.46, -48.34)
CIE-LCHlch(20.81, 65.00, 311.96°)
OKLaboklab(33.73% 0.0761 -0.1384)
OKLCHoklch(33.73% 0.158 298.8)
XYZxyz(6.2786, 3.1955, 19.0210)
Luminance0.0320 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45147B #4A7B14
analogous
#14167B #45147B #78147B
triadic
#45147B #7B4514 #147B45
tetradic
#45147B #7B1416 #4A7B14 #147B78
square
#45147B #7B1416 #4A7B14 #147B78
split-complementary
#45147B #7B7814 #167B14
monochromatic
#0F041A #270B46 #45147B #631DB0 #802DDD

Accessibility & contrast

On white

12.81
#45147B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#45147B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45147B
12.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45147B#FFFFFF#000000##FFFFFF
##45147B1.0012.811.6412.81
#FFFFFF12.811.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327E
Deuteranopia (green-blind)
#003179
Tritanopia (blue-blind)
#373148
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #45147b;
/* rgb */ color: rgb(69, 20, 123);
/* oklch */ color: oklch(33.7% 0.158 298.8);
Tailwind
colors: {
  custom: {
    50: '#7f59a2',
    500: '#45147b',
    950: '#000000',
  },
}
SCSS
$custom: #45147b;
$custom-light: #7f59a2;
$custom-dark: #000000;
JSON
{
  "hex": "#45147b",
  "rgb": {
    "r": 69,
    "g": 20,
    "b": 123
  },
  "hsl": {
    "h": 268.544,
    "s": 72.028,
    "l": 28.039
  },
  "oklch": {
    "l": 0.33729,
    "c": 0.15791,
    "h": 298.8
  },
  "luminance": 0.03196
}

Semantic roles & 50–950 ramp

primary
#45147B
secondary
#78B13A
accent
#EF3998
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #45147B

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

Preview Lab → · Contrast checker → · Palette generator →

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