#45175E#45175E

#45175E is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.5% C 0.123 H 310.9°. Best body text is #FFFFFF at 13.66:1 contrast (WCAG AA passes).

Color values

HEX#45175E
RGBrgb(69, 23, 94)
HSLhsl(279, 61%, 23%)
HSVhsv(279, 76%, 37%)
CMYKcmyk(26.6%, 75.5%, 0%, 63.1%)
CIE-LABlab(18.74, 34.82, -32.84)
CIE-LCHlch(18.74, 47.86, 316.68°)
OKLaboklab(31.49% 0.0805 -0.0928)
OKLCHoklch(31.49% 0.123 310.9)
XYZxyz(4.7806, 2.6863, 10.8542)
Luminance0.0269 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45175E #305E17
analogous
#21175E #45175E #5E1753
triadic
#45175E #5E4517 #175E45
tetradic
#45175E #5E2117 #305E17 #17535E
square
#45175E #5E2117 #305E17 #17535E
split-complementary
#45175E #535E17 #175E21
monochromatic
#120619 #210B2D #45175E #69238F #8D2FC0

Accessibility & contrast

On white

13.66
#45175E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#45175E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45175E
13.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45175E#FFFFFF#000000##FFFFFF
##45175E1.0013.661.5413.66
#FFFFFF13.661.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B60
Deuteranopia (green-blind)
#0C2E5C
Tritanopia (blue-blind)
#422638
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #45175e;
/* rgb */ color: rgb(69, 23, 94);
/* oklch */ color: oklch(31.5% 0.123 310.9);
Tailwind
colors: {
  custom: {
    50: '#7c598c',
    500: '#45175e',
    950: '#000000',
  },
}
SCSS
$custom: #45175e;
$custom-light: #7c598c;
$custom-dark: #000000;
JSON
{
  "hex": "#45175e",
  "rgb": {
    "r": 69,
    "g": 23,
    "b": 94
  },
  "hsl": {
    "h": 278.873,
    "s": 60.684,
    "l": 22.941
  },
  "oklch": {
    "l": 0.31489,
    "c": 0.12288,
    "h": 310.9
  },
  "luminance": 0.02686
}

Semantic roles & 50–950 ramp

primary
#45175E
secondary
#5B953C
accent
#E4447C
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#0A040C
muted
#7C797D

Preview Lab

Preview with #45175E

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

Preview Lab → · Contrast checker → · Palette generator →

#45175E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva