#5F2394#5F2394

#5F2394 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.8% C 0.174 H 303.6°. Best body text is #FFFFFF at 9.75:1 contrast (WCAG AA passes).

Color values

HEX#5F2394
RGBrgb(95, 35, 148)
HSLhsl(272, 62%, 36%)
HSVhsv(272, 76%, 58%)
CMYKcmyk(35.8%, 76.4%, 0%, 42%)
CIE-LABlab(28.83, 47.91, -50.73)
CIE-LCHlch(28.83, 69.78, 313.36°)
OKLaboklab(40.81% 0.096 -0.1446)
OKLCHoklch(40.81% 0.174 303.6)
XYZxyz(10.6644, 5.7731, 28.5637)
Luminance0.0577 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2394 #589423
analogous
#262394 #5F2394 #942390
triadic
#5F2394 #945F23 #23945F
tetradic
#5F2394 #942623 #589423 #239094
square
#5F2394 #942623 #589423 #239094
split-complementary
#5F2394 #909423 #239426
monochromatic
#1F0C31 #3F1763 #5F2394 #7F2FC5 #9D5AD8

Accessibility & contrast

On white

9.75
#5F2394 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#5F2394 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2394
9.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2394#FFFFFF#000000##FFFFFF
##5F23941.009.752.159.75
#FFFFFF9.751.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004397
Deuteranopia (green-blind)
#004492
Tritanopia (blue-blind)
#543F5A
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5f2394;
/* rgb */ color: rgb(95, 35, 148);
/* oklch */ color: oklch(40.8% 0.174 303.6);
Tailwind
colors: {
  custom: {
    50: '#9264b4',
    500: '#5f2394',
    950: '#000000',
  },
}
SCSS
$custom: #5f2394;
$custom-light: #9264b4;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2394",
  "rgb": {
    "r": 95,
    "g": 35,
    "b": 148
  },
  "hsl": {
    "h": 271.858,
    "s": 61.749,
    "l": 35.882
  },
  "oklch": {
    "l": 0.40805,
    "c": 0.17353,
    "h": 303.6
  },
  "luminance": 0.05773
}

Semantic roles & 50–950 ramp

primary
#5F2394
secondary
#86BC57
accent
#E5438F
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5F2394

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

Preview Lab → · Contrast checker → · Palette generator →

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