#45198B#45198B

#45198B is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.8% C 0.171 H 293.1°. Best body text is #FFFFFF at 11.90:1 contrast (WCAG AA passes).

Color values

HEX#45198B
RGBrgb(69, 25, 139)
HSLhsl(263, 70%, 32%)
HSVhsv(263, 82%, 55%)
CMYKcmyk(50.4%, 82%, 0%, 45.5%)
CIE-LABlab(23.08, 45.63, -54.70)
CIE-LCHlch(23.08, 71.23, 309.83°)
OKLaboklab(35.78% 0.0669 -0.1571)
OKLCHoklch(35.78% 0.171 293.1)
XYZxyz(7.4608, 3.8243, 24.7661)
Luminance0.0382 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45198B #5F8B19
analogous
#19268B #45198B #7E198B
triadic
#45198B #8B4519 #198B45
tetradic
#45198B #8B1926 #5F8B19 #198B7E
square
#45198B #8B1926 #5F8B19 #198B7E
split-complementary
#45198B #8B7E19 #268B19
monochromatic
#120623 #2B1057 #45198B #5F22BF #7D41DD

Accessibility & contrast

On white

11.90
#45198B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #45198B
11.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45198B#FFFFFF#000000##FFFFFF
##45198B1.0011.901.7711.90
#FFFFFF11.901.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388E
Deuteranopia (green-blind)
#003589
Tritanopia (blue-blind)
#2E3A53
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #45198b;
/* rgb */ color: rgb(69, 25, 139);
/* oklch */ color: oklch(35.8% 0.171 293.1);
Tailwind
colors: {
  custom: {
    50: '#815cae',
    500: '#45198b',
    950: '#000000',
  },
}
SCSS
$custom: #45198b;
$custom-light: #815cae;
$custom-dark: #000000;
JSON
{
  "hex": "#45198b",
  "rgb": {
    "r": 69,
    "g": 25,
    "b": 139
  },
  "hsl": {
    "h": 263.158,
    "s": 69.512,
    "l": 32.157
  },
  "oklch": {
    "l": 0.3578,
    "c": 0.17072,
    "h": 293.1
  },
  "luminance": 0.03825
}

Semantic roles & 50–950 ramp

primary
#45198B
secondary
#8EBE42
accent
#EC3BA8
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B0410
muted
#7C797F

Preview Lab

Preview with #45198B

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

Preview Lab → · Contrast checker → · Palette generator →

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