#5D308C#5D308C

#5D308C is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.6% C 0.147 H 303.0°. Best body text is #FFFFFF at 9.26:1 contrast (WCAG AA passes).

Color values

HEX#5D308C
RGBrgb(93, 48, 140)
HSLhsl(269, 49%, 37%)
HSVhsv(269, 66%, 55%)
CMYKcmyk(33.6%, 65.7%, 0%, 45.1%)
CIE-LABlab(30.24, 39.09, -43.53)
CIE-LCHlch(30.24, 58.51, 311.93°)
OKLaboklab(41.56% 0.0802 -0.1235)
OKLCHoklch(41.56% 0.147 303)
XYZxyz(10.3037, 6.3345, 25.4857)
Luminance0.0634 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D308C #5F8C30
analogous
#30318C #5D308C #8B308C
triadic
#5D308C #8C5D30 #308C5D
tetradic
#5D308C #8C3031 #5F8C30 #308C8B
square
#5D308C #8C3031 #5F8C30 #308C8B
split-complementary
#5D308C #8C8B30 #318C30
monochromatic
#201131 #3F205E #5D308C #7B40BA #9A6ACC

Accessibility & contrast

On white

9.26
#5D308C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#5D308C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D308C
9.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D308C#FFFFFF#000000##FFFFFF
##5D308C1.009.262.279.26
#FFFFFF9.261.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468F
Deuteranopia (green-blind)
#12478A
Tritanopia (blue-blind)
#544459
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5d308c;
/* rgb */ color: rgb(93, 48, 140);
/* oklch */ color: oklch(41.6% 0.147 303.0);
Tailwind
colors: {
  custom: {
    50: '#8f6bae',
    500: '#5d308c',
    950: '#000000',
  },
}
SCSS
$custom: #5d308c;
$custom-light: #8f6bae;
$custom-dark: #000000;
JSON
{
  "hex": "#5d308c",
  "rgb": {
    "r": 93,
    "g": 48,
    "b": 140
  },
  "hsl": {
    "h": 269.348,
    "s": 48.936,
    "l": 36.863
  },
  "oklch": {
    "l": 0.41559,
    "c": 0.14728,
    "h": 303
  },
  "luminance": 0.06335
}

Semantic roles & 50–950 ramp

primary
#5D308C
secondary
#8DB364
accent
#D84F95
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0710
muted
#7E7A7F

Preview Lab

Preview with #5D308C

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

Preview Lab → · Contrast checker → · Palette generator →

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