#45197F#45197F

#45197F is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.6% C 0.157 H 296.7°. Best body text is #FFFFFF at 12.36:1 contrast (WCAG AA passes).

Color values

HEX#45197F
RGBrgb(69, 25, 127)
HSLhsl(266, 67%, 30%)
HSVhsv(266, 80%, 50%)
CMYKcmyk(45.7%, 80.3%, 0%, 50.2%)
CIE-LABlab(21.92, 42.40, -49.07)
CIE-LCHlch(21.92, 64.85, 310.83°)
OKLaboklab(34.62% 0.0708 -0.1405)
OKLCHoklch(34.62% 0.157 296.7)
XYZxyz(6.6316, 3.4926, 20.3993)
Luminance0.0349 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45197F #537F19
analogous
#19207F #45197F #78197F
triadic
#45197F #7F4519 #197F45
tetradic
#45197F #7F1920 #537F19 #197F78
square
#45197F #7F1920 #537F19 #197F78
split-complementary
#45197F #7F7819 #207F19
monochromatic
#0E051A #290F4C #45197F #6123B2 #7E3AD8

Accessibility & contrast

On white

12.36
#45197F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#45197F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45197F
12.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45197F#FFFFFF#000000##FFFFFF
##45197F1.0012.361.7012.36
#FFFFFF12.361.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003582
Deuteranopia (green-blind)
#00337D
Tritanopia (blue-blind)
#35354C
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #45197f;
/* rgb */ color: rgb(69, 25, 127);
/* oklch */ color: oklch(34.6% 0.157 296.7);
Tailwind
colors: {
  custom: {
    50: '#7f5ba5',
    500: '#45197f',
    950: '#000000',
  },
}
SCSS
$custom: #45197f;
$custom-light: #7f5ba5;
$custom-dark: #000000;
JSON
{
  "hex": "#45197f",
  "rgb": {
    "r": 69,
    "g": 25,
    "b": 127
  },
  "hsl": {
    "h": 265.882,
    "s": 67.105,
    "l": 29.804
  },
  "oklch": {
    "l": 0.34616,
    "c": 0.15736,
    "h": 296.7
  },
  "luminance": 0.03493
}

Semantic roles & 50–950 ramp

primary
#45197F
secondary
#82B341
accent
#EA3EA0
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #45197F

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

Preview Lab → · Contrast checker → · Palette generator →

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