#45198C#45198C

#45198C is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.9% C 0.172 H 292.8°. Best body text is #FFFFFF at 11.86:1 contrast (WCAG AA passes).

Color values

HEX#45198C
RGBrgb(69, 25, 140)
HSLhsl(263, 70%, 32%)
HSVhsv(263, 82%, 55%)
CMYKcmyk(50.7%, 82.1%, 0%, 45.1%)
CIE-LABlab(23.18, 45.90, -55.16)
CIE-LCHlch(23.18, 71.76, 309.76°)
OKLaboklab(35.88% 0.0666 -0.1584)
OKLCHoklch(35.88% 0.172 292.8)
XYZxyz(7.5342, 3.8537, 25.1527)
Luminance0.0385 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45198C #608C19
analogous
#19268C #45198C #7F198C
triadic
#45198C #8C4519 #198C45
tetradic
#45198C #8C1926 #608C19 #198C7F
square
#45198C #8C1926 #608C19 #198C7F
split-complementary
#45198C #8C7F19 #268C19
monochromatic
#120624 #2B1058 #45198C #5F22C0 #7D42DD

Accessibility & contrast

On white

11.86
#45198C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#45198C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45198C
11.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45198C#FFFFFF#000000##FFFFFF
##45198C1.0011.861.7711.86
#FFFFFF11.861.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398F
Deuteranopia (green-blind)
#00358A
Tritanopia (blue-blind)
#2E3B53
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #45198c;
/* rgb */ color: rgb(69, 25, 140);
/* oklch */ color: oklch(35.9% 0.172 292.8);
Tailwind
colors: {
  custom: {
    50: '#815caf',
    500: '#45198c',
    950: '#000000',
  },
}
SCSS
$custom: #45198c;
$custom-light: #815caf;
$custom-dark: #000000;
JSON
{
  "hex": "#45198c",
  "rgb": {
    "r": 69,
    "g": 25,
    "b": 140
  },
  "hsl": {
    "h": 262.957,
    "s": 69.697,
    "l": 32.353
  },
  "oklch": {
    "l": 0.35879,
    "c": 0.17182,
    "h": 292.8
  },
  "luminance": 0.03854
}

Semantic roles & 50–950 ramp

primary
#45198C
secondary
#8FBE43
accent
#ED3BA9
background
#F8F5FA
surface
#EFE9F5
border
#CAC5CF
text
#0B0410
muted
#7C797F

Preview Lab

Preview with #45198C

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

Preview Lab → · Contrast checker → · Palette generator →

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