#5E308A#5E308A

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

Color values

HEX#5E308A
RGBrgb(94, 48, 138)
HSLhsl(271, 48%, 36%)
HSVhsv(271, 65%, 54%)
CMYKcmyk(31.9%, 65.2%, 0%, 45.9%)
CIE-LABlab(30.23, 38.81, -42.31)
CIE-LCHlch(30.23, 57.42, 312.53°)
OKLaboklab(41.53% 0.0818 -0.1199)
OKLCHoklch(41.53% 0.145 304.3)
XYZxyz(10.2595, 6.3286, 24.7209)
Luminance0.0633 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E308A #5C8A30
analogous
#31308A #5E308A #8A3089
triadic
#5E308A #8A5E30 #308A5E
tetradic
#5E308A #8A3130 #5C8A30 #30898A
square
#5E308A #8A3130 #5C8A30 #30898A
split-complementary
#5E308A #898A30 #308A31
monochromatic
#20102F #3F205D #5E308A #7D40B7 #9B69CB

Accessibility & contrast

On white

9.27
#5E308A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E308A
9.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E308A#FFFFFF#000000##FFFFFF
##5E308A1.009.272.279.27
#FFFFFF9.271.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468D
Deuteranopia (green-blind)
#174788
Tritanopia (blue-blind)
#564358
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5e308a;
/* rgb */ color: rgb(94, 48, 138);
/* oklch */ color: oklch(41.5% 0.145 304.3);
Tailwind
colors: {
  custom: {
    50: '#8f6bad',
    500: '#5e308a',
    950: '#000000',
  },
}
SCSS
$custom: #5e308a;
$custom-light: #8f6bad;
$custom-dark: #000000;
JSON
{
  "hex": "#5e308a",
  "rgb": {
    "r": 94,
    "g": 48,
    "b": 138
  },
  "hsl": {
    "h": 270.667,
    "s": 48.387,
    "l": 36.471
  },
  "oklch": {
    "l": 0.41532,
    "c": 0.14513,
    "h": 304.3
  },
  "luminance": 0.06329
}

Semantic roles & 50–950 ramp

primary
#5E308A
secondary
#8AB264
accent
#D85092
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0710
muted
#7E7A7F

Preview Lab

Preview with #5E308A

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

Preview Lab → · Contrast checker → · Palette generator →

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