#45198F#45198F

#45198F is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.2% C 0.175 H 292.0°. Best body text is #FFFFFF at 11.74:1 contrast (WCAG AA passes).

Color values

HEX#45198F
RGBrgb(69, 25, 143)
HSLhsl(262, 70%, 33%)
HSVhsv(262, 83%, 56%)
CMYKcmyk(51.7%, 82.5%, 0%, 43.9%)
CIE-LABlab(23.48, 46.71, -56.53)
CIE-LCHlch(23.48, 73.33, 309.56°)
OKLaboklab(36.18% 0.0655 -0.1624)
OKLCHoklch(36.18% 0.175 292)
XYZxyz(7.7584, 3.9433, 26.3336)
Luminance0.0394 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45198F #638F19
analogous
#19288F #45198F #80198F
triadic
#45198F #8F4519 #198F45
tetradic
#45198F #8F1928 #638F19 #198F80
square
#45198F #8F1928 #638F19 #198F80
split-complementary
#45198F #8F8019 #288F19
monochromatic
#130727 #2C105B #45198F #5E22C3 #7E44DE

Accessibility & contrast

On white

11.74
#45198F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#45198F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45198F
11.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45198F#FFFFFF#000000##FFFFFF
##45198F1.0011.741.7911.74
#FFFFFF11.741.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A92
Deuteranopia (green-blind)
#00358D
Tritanopia (blue-blind)
#2C3C55
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #45198f;
/* rgb */ color: rgb(69, 25, 143);
/* oklch */ color: oklch(36.2% 0.175 292.0);
Tailwind
colors: {
  custom: {
    50: '#815cb1',
    500: '#45198f',
    950: '#000000',
  },
}
SCSS
$custom: #45198f;
$custom-light: #815cb1;
$custom-dark: #000000;
JSON
{
  "hex": "#45198f",
  "rgb": {
    "r": 69,
    "g": 25,
    "b": 143
  },
  "hsl": {
    "h": 262.373,
    "s": 70.238,
    "l": 32.941
  },
  "oklch": {
    "l": 0.36179,
    "c": 0.17513,
    "h": 292
  },
  "luminance": 0.03944
}

Semantic roles & 50–950 ramp

primary
#45198F
secondary
#92BF44
accent
#ED3BAB
background
#F8F5FB
surface
#F0E9F6
border
#CBC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #45198F

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

Preview Lab → · Contrast checker → · Palette generator →

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