#5D308B#5D308B

#5D308B is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.5% C 0.146 H 303.3°. Best body text is #FFFFFF at 9.29:1 contrast (WCAG AA passes).

Color values

HEX#5D308B
RGBrgb(93, 48, 139)
HSLhsl(270, 49%, 37%)
HSVhsv(270, 65%, 55%)
CMYKcmyk(33.1%, 65.5%, 0%, 45.5%)
CIE-LABlab(30.17, 38.83, -43.03)
CIE-LCHlch(30.17, 57.96, 312.07°)
OKLaboklab(41.48% 0.0803 -0.122)
OKLCHoklch(41.48% 0.146 303.3)
XYZxyz(10.2303, 6.3052, 25.0991)
Luminance0.0630 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D308B #5E8B30
analogous
#30318B #5D308B #8B308B
triadic
#5D308B #8B5D30 #308B5D
tetradic
#5D308B #8B3031 #5E8B30 #308B8B
square
#5D308B #8B3031 #5E8B30 #308B8B
split-complementary
#5D308B #8B8B30 #318B30
monochromatic
#201130 #3F205E #5D308B #7B40B8 #9A6ACC

Accessibility & contrast

On white

9.29
#5D308B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#5D308B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D308B
9.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D308B#FFFFFF#000000##FFFFFF
##5D308B1.009.292.269.29
#FFFFFF9.291.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468E
Deuteranopia (green-blind)
#144789
Tritanopia (blue-blind)
#544459
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5d308b;
/* rgb */ color: rgb(93, 48, 139);
/* oklch */ color: oklch(41.5% 0.146 303.3);
Tailwind
colors: {
  custom: {
    50: '#8f6bad',
    500: '#5d308b',
    950: '#000000',
  },
}
SCSS
$custom: #5d308b;
$custom-light: #8f6bad;
$custom-dark: #000000;
JSON
{
  "hex": "#5d308b",
  "rgb": {
    "r": 93,
    "g": 48,
    "b": 139
  },
  "hsl": {
    "h": 269.67,
    "s": 48.663,
    "l": 36.667
  },
  "oklch": {
    "l": 0.41484,
    "c": 0.14608,
    "h": 303.3
  },
  "luminance": 0.06305
}

Semantic roles & 50–950 ramp

primary
#5D308B
secondary
#8CB364
accent
#D85095
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0710
muted
#7E7A7F

Preview Lab

Preview with #5D308B

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

Preview Lab → · Contrast checker → · Palette generator →

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