#5F2194#5F2194

#5F2194 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.6% C 0.176 H 303.8°. Best body text is #FFFFFF at 9.85:1 contrast (WCAG AA passes).

Color values

HEX#5F2194
RGBrgb(95, 33, 148)
HSLhsl(272, 64%, 35%)
HSVhsv(272, 78%, 58%)
CMYKcmyk(35.8%, 77.7%, 0%, 42%)
CIE-LABlab(28.53, 48.77, -51.22)
CIE-LCHlch(28.53, 70.72, 313.60°)
OKLaboklab(40.6% 0.0978 -0.146)
OKLCHoklch(40.6% 0.176 303.8)
XYZxyz(10.6072, 5.6587, 28.5447)
Luminance0.0566 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2194 #569421
analogous
#262194 #5F2194 #94218F
triadic
#5F2194 #945F21 #21945F
tetradic
#5F2194 #942621 #569421 #218F94
square
#5F2194 #942621 #569421 #218F94
split-complementary
#5F2194 #8F9421 #219426
monochromatic
#1F0B30 #3F1662 #5F2194 #7F2CC6 #9D56D9

Accessibility & contrast

On white

9.85
#5F2194 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#5F2194 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2194
9.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2194#FFFFFF#000000##FFFFFF
##5F21941.009.852.139.85
#FFFFFF9.851.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004297
Deuteranopia (green-blind)
#004392
Tritanopia (blue-blind)
#543E59
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5f2194;
/* rgb */ color: rgb(95, 33, 148);
/* oklch */ color: oklch(40.6% 0.176 303.8);
Tailwind
colors: {
  custom: {
    50: '#9263b4',
    500: '#5f2194',
    950: '#000000',
  },
}
SCSS
$custom: #5f2194;
$custom-light: #9263b4;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2194",
  "rgb": {
    "r": 95,
    "g": 33,
    "b": 148
  },
  "hsl": {
    "h": 272.348,
    "s": 63.536,
    "l": 35.49
  },
  "oklch": {
    "l": 0.40596,
    "c": 0.17574,
    "h": 303.8
  },
  "luminance": 0.05659
}

Semantic roles & 50–950 ramp

primary
#5F2194
secondary
#84BD54
accent
#E7418D
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5F2194

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

Preview Lab → · Contrast checker → · Palette generator →

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