#5F22A7#5F22A7

#5F22A7 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.4% C 0.194 H 298.2°. Best body text is #FFFFFF at 9.24:1 contrast (WCAG AA passes).

Color values

HEX#5F22A7
RGBrgb(95, 34, 167)
HSLhsl(268, 66%, 39%)
HSVhsv(268, 80%, 65%)
CMYKcmyk(43.1%, 79.6%, 0%, 34.5%)
CIE-LABlab(30.32, 53.01, -59.87)
CIE-LCHlch(30.32, 79.97, 311.52°)
OKLaboklab(42.35% 0.0918 -0.1714)
OKLCHoklch(42.35% 0.194 298.2)
XYZxyz(12.2646, 6.3668, 37.1345)
Luminance0.0637 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F22A7 #6AA722
analogous
#2227A7 #5F22A7 #A222A7
triadic
#5F22A7 #A75F22 #22A75F
tetradic
#5F22A7 #A72227 #6AA722 #22A7A2
square
#5F22A7 #A72227 #6AA722 #22A7A2
split-complementary
#5F22A7 #A7A222 #27A722
monochromatic
#250D41 #421874 #5F22A7 #7C31D5 #9D64DF

Accessibility & contrast

On white

9.24
#5F22A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#5F22A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F22A7
9.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F22A7#FFFFFF#000000##FFFFFF
##5F22A71.009.242.279.24
#FFFFFF9.241.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AB
Deuteranopia (green-blind)
#0046A4
Tritanopia (blue-blind)
#4D4765
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5f22a7;
/* rgb */ color: rgb(95, 34, 167);
/* oklch */ color: oklch(42.4% 0.194 298.2);
Tailwind
colors: {
  custom: {
    50: '#9465c2',
    500: '#5f22a7',
    950: '#000000',
  },
}
SCSS
$custom: #5f22a7;
$custom-light: #9465c2;
$custom-dark: #000000;
JSON
{
  "hex": "#5f22a7",
  "rgb": {
    "r": 95,
    "g": 34,
    "b": 167
  },
  "hsl": {
    "h": 267.519,
    "s": 66.169,
    "l": 39.412
  },
  "oklch": {
    "l": 0.42351,
    "c": 0.19443,
    "h": 298.2
  },
  "luminance": 0.06367
}

Semantic roles & 50–950 ramp

primary
#5F22A7
secondary
#97C560
accent
#E93F9B
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5F22A7

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

Preview Lab → · Contrast checker → · Palette generator →

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