#5D458C#5D458C

#5D458C is a mid, moderate violet. Relative luminance 0.085; OKLCH L 45.0% C 0.114 H 297.2°. Best body text is #FFFFFF at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#5D458C
RGBrgb(93, 69, 140)
HSLhsl(260, 34%, 41%)
HSVhsv(260, 51%, 55%)
CMYKcmyk(33.6%, 50.7%, 0%, 45.1%)
CIE-LABlab(34.96, 26.76, -35.97)
CIE-LCHlch(34.96, 44.83, 306.64°)
OKLaboklab(45.03% 0.0521 -0.1014)
OKLCHoklch(45.03% 0.114 297.2)
XYZxyz(11.3748, 8.4767, 25.8427)
Luminance0.0848 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D458C #748C45
analogous
#45508C #5D458C #80458C
triadic
#5D458C #8C5D45 #458C5D
tetradic
#5D458C #8C4550 #748C45 #458C80
square
#5D458C #8C4550 #748C45 #458C80
split-complementary
#5D458C #8C8045 #508C45
monochromatic
#271D3A #423163 #5D458C #7A5EB0 #9C87C4

Accessibility & contrast

On white

7.79
#5D458C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#5D458C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D458C
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D458C#FFFFFF#000000##FFFFFF
##5D458C1.007.792.707.79
#FFFFFF7.791.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C528F
Deuteranopia (green-blind)
#32518A
Tritanopia (blue-blind)
#535362
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5d458c;
/* rgb */ color: rgb(93, 69, 140);
/* oklch */ color: oklch(45.0% 0.114 297.2);
Tailwind
colors: {
  custom: {
    50: '#8d79ae',
    500: '#5d458c',
    950: '#000000',
  },
}
SCSS
$custom: #5d458c;
$custom-light: #8d79ae;
$custom-dark: #000000;
JSON
{
  "hex": "#5d458c",
  "rgb": {
    "r": 93,
    "g": 69,
    "b": 140
  },
  "hsl": {
    "h": 260.282,
    "s": 33.971,
    "l": 40.98
  },
  "oklch": {
    "l": 0.45025,
    "c": 0.11401,
    "h": 297.2
  },
  "luminance": 0.08477
}

Semantic roles & 50–950 ramp

primary
#5D458C
secondary
#9EAF7E
accent
#CA5EA5
background
#F8F7FA
surface
#F0EDF4
border
#CBC8CE
text
#0C0910
muted
#7D7B7F

Preview Lab

Preview with #5D458C

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

Preview Lab → · Contrast checker → · Palette generator →

#5D458C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva