#45197B#45197B

#45197B is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.2% C 0.153 H 298.1°. Best body text is #FFFFFF at 12.51:1 contrast (WCAG AA passes).

Color values

HEX#45197B
RGBrgb(69, 25, 123)
HSLhsl(267, 66%, 29%)
HSVhsv(267, 80%, 48%)
CMYKcmyk(43.9%, 79.7%, 0%, 51.8%)
CIE-LABlab(21.54, 41.33, -47.14)
CIE-LCHlch(21.54, 62.69, 311.25°)
OKLaboklab(34.24% 0.072 -0.1349)
OKLCHoklch(34.24% 0.153 298.1)
XYZxyz(6.3761, 3.3904, 19.0535)
Luminance0.0339 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45197B #4F7B19
analogous
#191E7B #45197B #76197B
triadic
#45197B #7B4519 #197B45
tetradic
#45197B #7B191E #4F7B19 #197B76
square
#45197B #7B191E #4F7B19 #197B76
split-complementary
#45197B #7B7619 #1E7B19
monochromatic
#0E0519 #280F48 #45197B #6223AE #7F38D7

Accessibility & contrast

On white

12.51
#45197B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#45197B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45197B
12.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45197B#FFFFFF#000000##FFFFFF
##45197B1.0012.511.6812.51
#FFFFFF12.511.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347E
Deuteranopia (green-blind)
#003379
Tritanopia (blue-blind)
#373349
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #45197b;
/* rgb */ color: rgb(69, 25, 123);
/* oklch */ color: oklch(34.2% 0.153 298.1);
Tailwind
colors: {
  custom: {
    50: '#7f5ba2',
    500: '#45197b',
    950: '#000000',
  },
}
SCSS
$custom: #45197b;
$custom-light: #7f5ba2;
$custom-dark: #000000;
JSON
{
  "hex": "#45197b",
  "rgb": {
    "r": 69,
    "g": 25,
    "b": 123
  },
  "hsl": {
    "h": 266.939,
    "s": 66.216,
    "l": 29.02
  },
  "oklch": {
    "l": 0.3424,
    "c": 0.15288,
    "h": 298.1
  },
  "luminance": 0.03391
}

Semantic roles & 50–950 ramp

primary
#45197B
secondary
#7EAF40
accent
#E93F9D
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #45197B

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

Preview Lab → · Contrast checker → · Palette generator →

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