#45317E#45317E

#45317E is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.0% C 0.125 H 291.3°. Best body text is #FFFFFF at 10.53:1 contrast (WCAG AA passes).

Color values

HEX#45317E
RGBrgb(69, 49, 126)
HSLhsl(256, 44%, 34%)
HSVhsv(256, 61%, 49%)
CMYKcmyk(45.2%, 61.1%, 0%, 50.6%)
CIE-LABlab(26.64, 28.90, -40.75)
CIE-LCHlch(26.64, 49.95, 305.34°)
OKLaboklab(37.98% 0.0452 -0.1162)
OKLCHoklch(37.98% 0.125 291.3)
XYZxyz(7.3174, 4.9680, 20.3080)
Luminance0.0497 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45317E #6A7E31
analogous
#31447E #45317E #6C317E
triadic
#45317E #7E4531 #317E45
tetradic
#45317E #7E3144 #6A7E31 #317E6C
square
#45317E #7E3144 #6A7E31 #317E6C
split-complementary
#45317E #7E6C31 #447E31
monochromatic
#150F26 #2D2052 #45317E #5D42AA #7E66C3

Accessibility & contrast

On white

10.53
#45317E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#45317E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45317E
10.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45317E#FFFFFF#000000##FFFFFF
##45317E1.0010.531.9910.53
#FFFFFF10.531.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004081
Deuteranopia (green-blind)
#023D7C
Tritanopia (blue-blind)
#354252
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #45317e;
/* rgb */ color: rgb(69, 49, 126);
/* oklch */ color: oklch(38.0% 0.125 291.3);
Tailwind
colors: {
  custom: {
    50: '#7d6aa4',
    500: '#45317e',
    950: '#000000',
  },
}
SCSS
$custom: #45317e;
$custom-light: #7d6aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#45317e",
  "rgb": {
    "r": 69,
    "g": 49,
    "b": 126
  },
  "hsl": {
    "h": 255.584,
    "s": 44,
    "l": 34.314
  },
  "oklch": {
    "l": 0.37977,
    "c": 0.12468,
    "h": 291.3
  },
  "luminance": 0.04968
}

Semantic roles & 50–950 ramp

primary
#45317E
secondary
#97AB60
accent
#D454B3
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A060F
muted
#7C7A7F

Preview Lab

Preview with #45317E

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

Preview Lab → · Contrast checker → · Palette generator →

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