#45175A#45175A

#45175A is a dark, moderate purple. Relative luminance 0.026; OKLCH L 31.2% C 0.118 H 313.1°. Best body text is #FFFFFF at 13.79:1 contrast (WCAG AA passes).

Color values

HEX#45175A
RGBrgb(69, 23, 90)
HSLhsl(281, 59%, 22%)
HSVhsv(281, 74%, 35%)
CMYKcmyk(23.3%, 74.4%, 0%, 64.7%)
CIE-LABlab(18.44, 33.85, -30.66)
CIE-LCHlch(18.44, 45.68, 317.83°)
OKLaboklab(31.18% 0.081 -0.0865)
OKLCHoklch(31.18% 0.118 313.1)
XYZxyz(4.6058, 2.6163, 9.9333)
Luminance0.0262 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45175A #2C5A17
analogous
#24175A #45175A #5A174E
triadic
#45175A #5A4517 #175A45
tetradic
#45175A #5A2417 #2C5A17 #174E5A
square
#45175A #5A2417 #2C5A17 #174E5A
split-complementary
#45175A #4E5A17 #175A24
monochromatic
#130618 #200B29 #45175A #6A238B #9030BB

Accessibility & contrast

On white

13.79
#45175A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#45175A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45175A
13.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45175A#FFFFFF#000000##FFFFFF
##45175A1.0013.791.5213.79
#FFFFFF13.791.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B5C
Deuteranopia (green-blind)
#122E58
Tritanopia (blue-blind)
#432536
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #45175a;
/* rgb */ color: rgb(69, 23, 90);
/* oklch */ color: oklch(31.2% 0.118 313.1);
Tailwind
colors: {
  custom: {
    50: '#7b5889',
    500: '#45175a',
    950: '#000000',
  },
}
SCSS
$custom: #45175a;
$custom-light: #7b5889;
$custom-dark: #000000;
JSON
{
  "hex": "#45175a",
  "rgb": {
    "r": 69,
    "g": 23,
    "b": 90
  },
  "hsl": {
    "h": 281.194,
    "s": 59.292,
    "l": 22.157
  },
  "oklch": {
    "l": 0.31175,
    "c": 0.11847,
    "h": 313.1
  },
  "luminance": 0.02616
}

Semantic roles & 50–950 ramp

primary
#45175A
secondary
#57913C
accent
#E24577
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#0A040B
muted
#7C797C

Preview Lab

Preview with #45175A

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

Preview Lab → · Contrast checker → · Palette generator →

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