#5F2094#5F2094

#5F2094 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.5% C 0.177 H 304.0°. Best body text is #FFFFFF at 9.90:1 contrast (WCAG AA passes).

Color values

HEX#5F2094
RGBrgb(95, 32, 148)
HSLhsl(273, 64%, 35%)
HSVhsv(273, 78%, 58%)
CMYKcmyk(35.8%, 78.4%, 0%, 42%)
CIE-LABlab(28.39, 49.18, -51.45)
CIE-LCHlch(28.39, 71.18, 313.71°)
OKLaboklab(40.49% 0.0987 -0.1467)
OKLCHoklch(40.49% 0.177 304)
XYZxyz(10.5799, 5.6041, 28.5355)
Luminance0.0560 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2094 #559420
analogous
#252094 #5F2094 #94208F
triadic
#5F2094 #945F20 #20945F
tetradic
#5F2094 #942520 #559420 #208F94
square
#5F2094 #942520 #559420 #208F94
split-complementary
#5F2094 #8F9420 #209425
monochromatic
#1E0A2F #3F1562 #5F2094 #7F2BC6 #9D54DA

Accessibility & contrast

On white

9.90
#5F2094 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#5F2094 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2094
9.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2094#FFFFFF#000000##FFFFFF
##5F20941.009.902.129.90
#FFFFFF9.901.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.901.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: #5f2094;
/* rgb */ color: rgb(95, 32, 148);
/* oklch */ color: oklch(40.5% 0.177 304.0);
Tailwind
colors: {
  custom: {
    50: '#9263b4',
    500: '#5f2094',
    950: '#000000',
  },
}
SCSS
$custom: #5f2094;
$custom-light: #9263b4;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2094",
  "rgb": {
    "r": 95,
    "g": 32,
    "b": 148
  },
  "hsl": {
    "h": 272.586,
    "s": 64.444,
    "l": 35.294
  },
  "oklch": {
    "l": 0.40495,
    "c": 0.1768,
    "h": 304
  },
  "luminance": 0.05604
}

Semantic roles & 50–950 ramp

primary
#5F2094
secondary
#83BE52
accent
#E7408D
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5F2094

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

Preview Lab → · Contrast checker → · Palette generator →

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