#5F2794#5F2794

#5F2794 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.3% C 0.169 H 303.0°. Best body text is #FFFFFF at 9.53:1 contrast (WCAG AA passes).

Color values

HEX#5F2794
RGBrgb(95, 39, 148)
HSLhsl(271, 58%, 37%)
HSVhsv(271, 74%, 58%)
CMYKcmyk(35.8%, 73.6%, 0%, 42%)
CIE-LABlab(29.47, 46.11, -49.70)
CIE-LCHlch(29.47, 67.80, 312.85°)
OKLaboklab(41.25% 0.0921 -0.1415)
OKLCHoklch(41.25% 0.169 303)
XYZxyz(10.7889, 6.0220, 28.6052)
Luminance0.0602 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2794 #5C9427
analogous
#292794 #5F2794 #942793
triadic
#5F2794 #945F27 #27945F
tetradic
#5F2794 #942927 #5C9427 #279394
square
#5F2794 #942927 #5C9427 #279394
split-complementary
#5F2794 #939427 #279429
monochromatic
#210D33 #401A64 #5F2794 #7E34C4 #9C60D5

Accessibility & contrast

On white

9.53
#5F2794 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#5F2794 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2794
9.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2794#FFFFFF#000000##FFFFFF
##5F27941.009.532.209.53
#FFFFFF9.531.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004497
Deuteranopia (green-blind)
#004592
Tritanopia (blue-blind)
#54415B
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5f2794;
/* rgb */ color: rgb(95, 39, 148);
/* oklch */ color: oklch(41.3% 0.169 303.0);
Tailwind
colors: {
  custom: {
    50: '#9166b4',
    500: '#5f2794',
    950: '#000000',
  },
}
SCSS
$custom: #5f2794;
$custom-light: #9166b4;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2794",
  "rgb": {
    "r": 95,
    "g": 39,
    "b": 148
  },
  "hsl": {
    "h": 270.826,
    "s": 58.289,
    "l": 36.667
  },
  "oklch": {
    "l": 0.41254,
    "c": 0.16886,
    "h": 303
  },
  "luminance": 0.06022
}

Semantic roles & 50–950 ramp

primary
#5F2794
secondary
#8ABB5C
accent
#E24692
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5F2794

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

Preview Lab → · Contrast checker → · Palette generator →

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