#5F2294#5F2294

#5F2294 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.7% C 0.175 H 303.7°. Best body text is #FFFFFF at 9.80:1 contrast (WCAG AA passes).

Color values

HEX#5F2294
RGBrgb(95, 34, 148)
HSLhsl(272, 63%, 36%)
HSVhsv(272, 77%, 58%)
CMYKcmyk(35.8%, 77%, 0%, 42%)
CIE-LABlab(28.68, 48.34, -50.98)
CIE-LCHlch(28.68, 70.26, 313.48°)
OKLaboklab(40.7% 0.0969 -0.1453)
OKLCHoklch(40.7% 0.175 303.7)
XYZxyz(10.6354, 5.7151, 28.5541)
Luminance0.0571 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2294 #579422
analogous
#262294 #5F2294 #942290
triadic
#5F2294 #945F22 #22945F
tetradic
#5F2294 #942622 #579422 #229094
square
#5F2294 #942622 #579422 #229094
split-complementary
#5F2294 #909422 #229426
monochromatic
#1F0B30 #3F1762 #5F2294 #7F2DC6 #9D58D9

Accessibility & contrast

On white

9.80
#5F2294 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F2294
9.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2294#FFFFFF#000000##FFFFFF
##5F22941.009.802.149.80
#FFFFFF9.801.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.801.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f2294;
/* rgb */ color: rgb(95, 34, 148);
/* oklch */ color: oklch(40.7% 0.175 303.7);
Tailwind
colors: {
  custom: {
    50: '#9264b4',
    500: '#5f2294',
    950: '#000000',
  },
}
SCSS
$custom: #5f2294;
$custom-light: #9264b4;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2294",
  "rgb": {
    "r": 95,
    "g": 34,
    "b": 148
  },
  "hsl": {
    "h": 272.105,
    "s": 62.637,
    "l": 35.686
  },
  "oklch": {
    "l": 0.40699,
    "c": 0.17465,
    "h": 303.7
  },
  "luminance": 0.05715
}

Semantic roles & 50–950 ramp

primary
#5F2294
secondary
#85BD55
accent
#E6428E
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5F2294

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

Preview Lab → · Contrast checker → · Palette generator →

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