#5E307C#5E307C

#5E307C is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.5% C 0.128 H 309.8°. Best body text is #FFFFFF at 9.59:1 contrast (WCAG AA passes).

Color values

HEX#5E307C
RGBrgb(94, 48, 124)
HSLhsl(276, 44%, 34%)
HSVhsv(276, 61%, 49%)
CMYKcmyk(24.2%, 61.3%, 0%, 51.4%)
CIE-LABlab(29.28, 35.30, -35.09)
CIE-LCHlch(29.28, 49.77, 315.17°)
OKLaboklab(40.54% 0.0822 -0.0987)
OKLCHoklch(40.54% 0.128 309.8)
XYZxyz(9.3104, 5.9490, 19.7227)
Luminance0.0595 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E307C #4E7C30
analogous
#38307C #5E307C #7C3074
triadic
#5E307C #7C5E30 #307C5E
tetradic
#5E307C #7C3830 #4E7C30 #30747C
square
#5E307C #7C3830 #4E7C30 #30747C
split-complementary
#5E307C #747C30 #307C38
monochromatic
#1B0E24 #3D1F50 #5E307C #7F41A8 #9D64C3

Accessibility & contrast

On white

9.59
#5E307C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#5E307C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E307C
9.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E307C#FFFFFF#000000##FFFFFF
##5E307C1.009.592.199.59
#FFFFFF9.591.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#14437E
Deuteranopia (green-blind)
#27467A
Tritanopia (blue-blind)
#5A3E51
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5e307c;
/* rgb */ color: rgb(94, 48, 124);
/* oklch */ color: oklch(40.5% 0.128 309.8);
Tailwind
colors: {
  custom: {
    50: '#8e6ba2',
    500: '#5e307c',
    950: '#000000',
  },
}
SCSS
$custom: #5e307c;
$custom-light: #8e6ba2;
$custom-dark: #000000;
JSON
{
  "hex": "#5e307c",
  "rgb": {
    "r": 94,
    "g": 48,
    "b": 124
  },
  "hsl": {
    "h": 276.316,
    "s": 44.186,
    "l": 33.725
  },
  "oklch": {
    "l": 0.40544,
    "c": 0.12846,
    "h": 309.8
  },
  "luminance": 0.05949
}

Semantic roles & 50–950 ramp

primary
#5E307C
secondary
#7CAA5E
accent
#D45486
background
#F8F6FA
surface
#F0EBF3
border
#CBC6CD
text
#0D070F
muted
#7D7A7F

Preview Lab

Preview with #5E307C

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

Preview Lab → · Contrast checker → · Palette generator →

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