#5E2FA9#5E2FA9

#5E2FA9 is a dark, vivid violet. Relative luminance 0.073; OKLCH L 43.9% C 0.183 H 295.4°. Best body text is #FFFFFF at 8.55:1 contrast (WCAG AA passes).

Color values

HEX#5E2FA9
RGBrgb(94, 47, 169)
HSLhsl(263, 56%, 42%)
HSVhsv(263, 72%, 66%)
CMYKcmyk(44.4%, 72.2%, 0%, 33.7%)
CIE-LABlab(32.43, 47.49, -57.63)
CIE-LCHlch(32.43, 74.68, 309.49°)
OKLaboklab(43.86% 0.0784 -0.1649)
OKLCHoklch(43.86% 0.183 295.4)
XYZxyz(12.7921, 7.2770, 38.2590)
Luminance0.0728 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2FA9 #7AA92F
analogous
#2F3DA9 #5E2FA9 #9B2FA9
triadic
#5E2FA9 #A95E2F #2FA95E
tetradic
#5E2FA9 #A92F3D #7AA92F #2FA99B
square
#5E2FA9 #A92F3D #7AA92F #2FA99B
split-complementary
#5E2FA9 #A99B2F #3DA92F
monochromatic
#291449 #432279 #5E2FA9 #7C49CC #9E79DA

Accessibility & contrast

On white

8.55
#5E2FA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#5E2FA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2FA9
8.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2FA9#FFFFFF#000000##FFFFFF
##5E2FA91.008.552.468.55
#FFFFFF8.551.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAD
Deuteranopia (green-blind)
#004AA7
Tritanopia (blue-blind)
#494E69
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5e2fa9;
/* rgb */ color: rgb(94, 47, 169);
/* oklch */ color: oklch(43.9% 0.183 295.4);
Tailwind
colors: {
  custom: {
    50: '#926cc3',
    500: '#5e2fa9',
    950: '#000000',
  },
}
SCSS
$custom: #5e2fa9;
$custom-light: #926cc3;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2fa9",
  "rgb": {
    "r": 94,
    "g": 47,
    "b": 169
  },
  "hsl": {
    "h": 263.115,
    "s": 56.481,
    "l": 42.353
  },
  "oklch": {
    "l": 0.4386,
    "c": 0.18264,
    "h": 295.4
  },
  "luminance": 0.07277
}

Semantic roles & 50–950 ramp

primary
#5E2FA9
secondary
#A3C272
accent
#E048A5
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5E2FA9

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

Preview Lab → · Contrast checker → · Palette generator →

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