#45197A#45197A

#45197A is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.1% C 0.152 H 298.4°. Best body text is #FFFFFF at 12.55:1 contrast (WCAG AA passes).

Color values

HEX#45197A
RGBrgb(69, 25, 122)
HSLhsl(267, 66%, 29%)
HSVhsv(267, 80%, 48%)
CMYKcmyk(43.4%, 79.5%, 0%, 52.2%)
CIE-LABlab(21.45, 41.07, -46.65)
CIE-LCHlch(21.45, 62.15, 311.36°)
OKLaboklab(34.15% 0.0723 -0.1335)
OKLCHoklch(34.15% 0.152 298.4)
XYZxyz(6.3138, 3.3655, 18.7255)
Luminance0.0337 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45197A #4E7A19
analogous
#191E7A #45197A #76197A
triadic
#45197A #7A4519 #197A45
tetradic
#45197A #7A191E #4E7A19 #197A76
square
#45197A #7A191E #4E7A19 #197A76
split-complementary
#45197A #7A7619 #1E7A19
monochromatic
#0E0519 #280F47 #45197A #6223AD #7F37D6

Accessibility & contrast

On white

12.55
#45197A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#45197A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45197A
12.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45197A#FFFFFF#000000##FFFFFF
##45197A1.0012.551.6712.55
#FFFFFF12.551.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347D
Deuteranopia (green-blind)
#003278
Tritanopia (blue-blind)
#383349
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #45197a;
/* rgb */ color: rgb(69, 25, 122);
/* oklch */ color: oklch(34.1% 0.152 298.4);
Tailwind
colors: {
  custom: {
    50: '#7e5ba1',
    500: '#45197a',
    950: '#000000',
  },
}
SCSS
$custom: #45197a;
$custom-light: #7e5ba1;
$custom-dark: #000000;
JSON
{
  "hex": "#45197a",
  "rgb": {
    "r": 69,
    "g": 25,
    "b": 122
  },
  "hsl": {
    "h": 267.216,
    "s": 65.986,
    "l": 28.824
  },
  "oklch": {
    "l": 0.34147,
    "c": 0.15175,
    "h": 298.4
  },
  "luminance": 0.03366
}

Semantic roles & 50–950 ramp

primary
#45197A
secondary
#7DAF40
accent
#E93F9C
background
#F8F5FA
surface
#EFE9F3
border
#CAC5CD
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #45197A

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

Preview Lab → · Contrast checker → · Palette generator →

#45197A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva