#45197D#45197D

#45197D is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.4% C 0.155 H 297.4°. Best body text is #FFFFFF at 12.44:1 contrast (WCAG AA passes).

Color values

HEX#45197D
RGBrgb(69, 25, 125)
HSLhsl(266, 67%, 29%)
HSVhsv(266, 80%, 49%)
CMYKcmyk(44.8%, 80%, 0%, 51%)
CIE-LABlab(21.73, 41.87, -48.10)
CIE-LCHlch(21.73, 63.77, 311.03°)
OKLaboklab(34.43% 0.0714 -0.1377)
OKLCHoklch(34.43% 0.155 297.4)
XYZxyz(6.5026, 3.4410, 19.7196)
Luminance0.0344 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45197D #517D19
analogous
#191F7D #45197D #77197D
triadic
#45197D #7D4519 #197D45
tetradic
#45197D #7D191F #517D19 #197D77
square
#45197D #7D191F #517D19 #197D77
split-complementary
#45197D #7D7719 #1F7D19
monochromatic
#0E051A #290F4A #45197D #6123B0 #7F39D7

Accessibility & contrast

On white

12.44
#45197D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#45197D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45197D
12.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45197D#FFFFFF#000000##FFFFFF
##45197D1.0012.441.6912.44
#FFFFFF12.441.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003480
Deuteranopia (green-blind)
#00337B
Tritanopia (blue-blind)
#36344A
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #45197d;
/* rgb */ color: rgb(69, 25, 125);
/* oklch */ color: oklch(34.4% 0.155 297.4);
Tailwind
colors: {
  custom: {
    50: '#7f5ba4',
    500: '#45197d',
    950: '#000000',
  },
}
SCSS
$custom: #45197d;
$custom-light: #7f5ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#45197d",
  "rgb": {
    "r": 69,
    "g": 25,
    "b": 125
  },
  "hsl": {
    "h": 266.4,
    "s": 66.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.34427,
    "c": 0.15512,
    "h": 297.4
  },
  "luminance": 0.03441
}

Semantic roles & 50–950 ramp

primary
#45197D
secondary
#80B140
accent
#EA3E9E
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #45197D

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

Preview Lab → · Contrast checker → · Palette generator →

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