#5F2293#5F2293

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

Color values

HEX#5F2293
RGBrgb(95, 34, 147)
HSLhsl(272, 62%, 35%)
HSVhsv(272, 77%, 58%)
CMYKcmyk(35.4%, 76.9%, 0%, 42.4%)
CIE-LABlab(28.60, 48.10, -50.50)
CIE-LCHlch(28.60, 69.74, 313.61°)
OKLaboklab(40.62% 0.0972 -0.1439)
OKLCHoklch(40.62% 0.174 304)
XYZxyz(10.5566, 5.6836, 28.1390)
Luminance0.0568 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2293 #569322
analogous
#262293 #5F2293 #93228E
triadic
#5F2293 #935F22 #22935F
tetradic
#5F2293 #932622 #569322 #228E93
square
#5F2293 #932622 #569322 #228E93
split-complementary
#5F2293 #8E9322 #229326
monochromatic
#1F0B30 #3F1761 #5F2293 #7F2DC5 #9D57D8

Accessibility & contrast

On white

9.83
#5F2293 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#5F2293 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2293
9.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2293#FFFFFF#000000##FFFFFF
##5F22931.009.832.149.83
#FFFFFF9.831.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004296
Deuteranopia (green-blind)
#004391
Tritanopia (blue-blind)
#553F59
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5f2293;
/* rgb */ color: rgb(95, 34, 147);
/* oklch */ color: oklch(40.6% 0.174 304.0);
Tailwind
colors: {
  custom: {
    50: '#9264b4',
    500: '#5f2293',
    950: '#000000',
  },
}
SCSS
$custom: #5f2293;
$custom-light: #9264b4;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2293",
  "rgb": {
    "r": 95,
    "g": 34,
    "b": 147
  },
  "hsl": {
    "h": 272.389,
    "s": 62.431,
    "l": 35.49
  },
  "oklch": {
    "l": 0.40616,
    "c": 0.1736,
    "h": 304
  },
  "luminance": 0.05684
}

Semantic roles & 50–950 ramp

primary
#5F2293
secondary
#84BC55
accent
#E5428D
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5F2293

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

Preview Lab → · Contrast checker → · Palette generator →

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