#5E2EA2#5E2EA2

#5E2EA2 is a dark, vivid violet. Relative luminance 0.069; OKLCH L 43.1% C 0.176 H 297.4°. Best body text is #FFFFFF at 8.79:1 contrast (WCAG AA passes).

Color values

HEX#5E2EA2
RGBrgb(94, 46, 162)
HSLhsl(265, 56%, 41%)
HSVhsv(265, 72%, 64%)
CMYKcmyk(42%, 71.6%, 0%, 36.5%)
CIE-LABlab(31.67, 46.12, -54.65)
CIE-LCHlch(31.67, 71.51, 310.17°)
OKLaboklab(43.15% 0.0808 -0.1562)
OKLCHoklch(43.15% 0.176 297.4)
XYZxyz(12.1130, 6.9421, 34.8772)
Luminance0.0694 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2EA2 #72A22E
analogous
#2E38A2 #5E2EA2 #982EA2
triadic
#5E2EA2 #A25E2E #2EA25E
tetradic
#5E2EA2 #A22E38 #72A22E #2EA298
square
#5E2EA2 #A22E38 #72A22E #2EA298
split-complementary
#5E2EA2 #A2982E #38A22E
monochromatic
#271343 #422072 #5E2EA2 #7B43CA #9D73D7

Accessibility & contrast

On white

8.79
#5E2EA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#5E2EA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2EA2
8.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2EA2#FFFFFF#000000##FFFFFF
##5E2EA21.008.792.398.79
#FFFFFF8.791.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA5
Deuteranopia (green-blind)
#0049A0
Tritanopia (blue-blind)
#4D4B65
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5e2ea2;
/* rgb */ color: rgb(94, 46, 162);
/* oklch */ color: oklch(43.1% 0.176 297.4);
Tailwind
colors: {
  custom: {
    50: '#926bbe',
    500: '#5e2ea2',
    950: '#000000',
  },
}
SCSS
$custom: #5e2ea2;
$custom-light: #926bbe;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2ea2",
  "rgb": {
    "r": 94,
    "g": 46,
    "b": 162
  },
  "hsl": {
    "h": 264.828,
    "s": 55.769,
    "l": 40.784
  },
  "oklch": {
    "l": 0.43145,
    "c": 0.17583,
    "h": 297.4
  },
  "luminance": 0.06942
}

Semantic roles & 50–950 ramp

primary
#5E2EA2
secondary
#9DBF6D
accent
#DF49A1
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5E2EA2

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

Preview Lab → · Contrast checker → · Palette generator →

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