#45147C#45147C

#45147C is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.8% C 0.159 H 298.5°. Best body text is #FFFFFF at 12.77:1 contrast (WCAG AA passes).

Color values

HEX#45147C
RGBrgb(69, 20, 124)
HSLhsl(268, 72%, 28%)
HSVhsv(268, 84%, 49%)
CMYKcmyk(44.4%, 83.9%, 0%, 51.4%)
CIE-LABlab(20.91, 43.71, -48.82)
CIE-LCHlch(20.91, 65.53, 311.84°)
OKLaboklab(33.83% 0.0758 -0.1398)
OKLCHoklch(33.83% 0.159 298.5)
XYZxyz(6.3415, 3.2207, 19.3524)
Luminance0.0322 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45147C #4B7C14
analogous
#14177C #45147C #79147C
triadic
#45147C #7C4514 #147C45
tetradic
#45147C #7C1417 #4B7C14 #147C79
square
#45147C #7C1417 #4B7C14 #147C79
split-complementary
#45147C #7C7914 #177C14
monochromatic
#0F041A #280B47 #45147C #621DB1 #802DDD

Accessibility & contrast

On white

12.77
#45147C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #45147C
12.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45147C#FFFFFF#000000##FFFFFF
##45147C1.0012.771.6412.77
#FFFFFF12.771.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327F
Deuteranopia (green-blind)
#00317A
Tritanopia (blue-blind)
#373249
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #45147c;
/* rgb */ color: rgb(69, 20, 124);
/* oklch */ color: oklch(33.8% 0.159 298.5);
Tailwind
colors: {
  custom: {
    50: '#7f59a3',
    500: '#45147c',
    950: '#000000',
  },
}
SCSS
$custom: #45147c;
$custom-light: #7f59a3;
$custom-dark: #000000;
JSON
{
  "hex": "#45147c",
  "rgb": {
    "r": 69,
    "g": 20,
    "b": 124
  },
  "hsl": {
    "h": 268.269,
    "s": 72.222,
    "l": 28.235
  },
  "oklch": {
    "l": 0.33825,
    "c": 0.15898,
    "h": 298.5
  },
  "luminance": 0.03221
}

Semantic roles & 50–950 ramp

primary
#45147C
secondary
#79B23A
accent
#EF3999
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #45147C

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

Preview Lab → · Contrast checker → · Palette generator →

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