#5F22BC#5F22BC

#5F22BC is a dark, highly saturated violet. Relative luminance 0.072; OKLCH L 44.3% C 0.216 H 293.1°. Best body text is #FFFFFF at 8.60:1 contrast (WCAG AA passes).

Color values

HEX#5F22BC
RGBrgb(95, 34, 188)
HSLhsl(264, 69%, 44%)
HSVhsv(264, 82%, 74%)
CMYKcmyk(49.5%, 81.9%, 0%, 26.3%)
CIE-LABlab(32.27, 58.26, -69.20)
CIE-LCHlch(32.27, 90.46, 310.10°)
OKLaboklab(44.3% 0.085 -0.1987)
OKLCHoklch(44.3% 0.216 293.1)
XYZxyz(14.3659, 7.2073, 48.2014)
Luminance0.0721 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F22BC #7FBC22
analogous
#2232BC #5F22BC #AC22BC
triadic
#5F22BC #BC5F22 #22BC5F
tetradic
#5F22BC #BC2232 #7FBC22 #22BCAC
square
#5F22BC #BC2232 #7FBC22 #22BCAC
split-complementary
#5F22BC #BCAC22 #32BC22
monochromatic
#2B0F54 #451988 #5F22BC #7D3FDC #A073E6

Accessibility & contrast

On white

8.60
#5F22BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#5F22BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F22BC
8.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F22BC#FFFFFF#000000##FFFFFF
##5F22BC1.008.602.448.60
#FFFFFF8.601.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EC0
Deuteranopia (green-blind)
#0049B9
Tritanopia (blue-blind)
#415071
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5f22bc;
/* rgb */ color: rgb(95, 34, 188);
/* oklch */ color: oklch(44.3% 0.216 293.1);
Tailwind
colors: {
  custom: {
    50: '#9666d1',
    500: '#5f22bc',
    950: '#000000',
  },
}
SCSS
$custom: #5f22bc;
$custom-light: #9666d1;
$custom-dark: #000000;
JSON
{
  "hex": "#5f22bc",
  "rgb": {
    "r": 95,
    "g": 34,
    "b": 188
  },
  "hsl": {
    "h": 263.766,
    "s": 69.369,
    "l": 43.529
  },
  "oklch": {
    "l": 0.443,
    "c": 0.21611,
    "h": 293.1
  },
  "luminance": 0.07208
}

Semantic roles & 50–950 ramp

primary
#5F22BC
secondary
#A7CD6D
accent
#EC3CA6
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0F0614
muted
#7E7A83

Preview Lab

Preview with #5F22BC

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

Preview Lab → · Contrast checker → · Palette generator →

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