#45197C#45197C

#45197C is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.3% C 0.154 H 297.7°. Best body text is #FFFFFF at 12.48:1 contrast (WCAG AA passes).

Color values

HEX#45197C
RGBrgb(69, 25, 124)
HSLhsl(267, 66%, 29%)
HSVhsv(267, 80%, 49%)
CMYKcmyk(44.4%, 79.8%, 0%, 51.4%)
CIE-LABlab(21.64, 41.60, -47.62)
CIE-LCHlch(21.64, 63.23, 311.14°)
OKLaboklab(34.33% 0.0717 -0.1363)
OKLCHoklch(34.33% 0.154 297.7)
XYZxyz(6.4390, 3.4156, 19.3849)
Luminance0.0342 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45197C #507C19
analogous
#191E7C #45197C #77197C
triadic
#45197C #7C4519 #197C45
tetradic
#45197C #7C191E #507C19 #197C77
square
#45197C #7C191E #507C19 #197C77
split-complementary
#45197C #7C7719 #1E7C19
monochromatic
#0E0519 #290F49 #45197C #6123AF #7F38D7

Accessibility & contrast

On white

12.48
#45197C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #45197C
12.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45197C#FFFFFF#000000##FFFFFF
##45197C1.0012.481.6812.48
#FFFFFF12.481.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347F
Deuteranopia (green-blind)
#00337A
Tritanopia (blue-blind)
#37344A
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #45197c;
/* rgb */ color: rgb(69, 25, 124);
/* oklch */ color: oklch(34.3% 0.154 297.7);
Tailwind
colors: {
  custom: {
    50: '#7f5ba3',
    500: '#45197c',
    950: '#000000',
  },
}
SCSS
$custom: #45197c;
$custom-light: #7f5ba3;
$custom-dark: #000000;
JSON
{
  "hex": "#45197c",
  "rgb": {
    "r": 69,
    "g": 25,
    "b": 124
  },
  "hsl": {
    "h": 266.667,
    "s": 66.443,
    "l": 29.216
  },
  "oklch": {
    "l": 0.34333,
    "c": 0.154,
    "h": 297.7
  },
  "luminance": 0.03416
}

Semantic roles & 50–950 ramp

primary
#45197C
secondary
#7FB040
accent
#E93E9D
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #45197C

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

Preview Lab → · Contrast checker → · Palette generator →

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