#45175D#45175D

#45175D is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.4% C 0.122 H 311.5°. Best body text is #FFFFFF at 13.69:1 contrast (WCAG AA passes).

Color values

HEX#45175D
RGBrgb(69, 23, 93)
HSLhsl(279, 60%, 23%)
HSVhsv(279, 75%, 36%)
CMYKcmyk(25.8%, 75.3%, 0%, 63.5%)
CIE-LABlab(18.66, 34.58, -32.30)
CIE-LCHlch(18.66, 47.32, 316.95°)
OKLaboklab(31.41% 0.0806 -0.0913)
OKLCHoklch(31.41% 0.122 311.5)
XYZxyz(4.7361, 2.6684, 10.6194)
Luminance0.0267 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45175D #2F5D17
analogous
#22175D #45175D #5D1752
triadic
#45175D #5D4517 #175D45
tetradic
#45175D #5D2217 #2F5D17 #17525D
square
#45175D #5D2217 #2F5D17 #17525D
split-complementary
#45175D #525D17 #175D22
monochromatic
#120619 #210B2C #45175D #69238E #8E2FBF

Accessibility & contrast

On white

13.69
#45175D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#45175D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45175D
13.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45175D#FFFFFF#000000##FFFFFF
##45175D1.0013.691.5313.69
#FFFFFF13.691.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B5F
Deuteranopia (green-blind)
#0E2E5B
Tritanopia (blue-blind)
#422638
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #45175d;
/* rgb */ color: rgb(69, 23, 93);
/* oklch */ color: oklch(31.4% 0.122 311.5);
Tailwind
colors: {
  custom: {
    50: '#7c598b',
    500: '#45175d',
    950: '#000000',
  },
}
SCSS
$custom: #45175d;
$custom-light: #7c598b;
$custom-dark: #000000;
JSON
{
  "hex": "#45175d",
  "rgb": {
    "r": 69,
    "g": 23,
    "b": 93
  },
  "hsl": {
    "h": 279.429,
    "s": 60.345,
    "l": 22.745
  },
  "oklch": {
    "l": 0.31409,
    "c": 0.12178,
    "h": 311.5
  },
  "luminance": 0.02668
}

Semantic roles & 50–950 ramp

primary
#45175D
secondary
#5A943C
accent
#E3447B
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#0A040C
muted
#7C797D

Preview Lab

Preview with #45175D

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

Preview Lab → · Contrast checker → · Palette generator →

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