#5F22A5#5F22A5

#5F22A5 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 42.2% C 0.192 H 298.7°. Best body text is #FFFFFF at 9.30:1 contrast (WCAG AA passes).

Color values

HEX#5F22A5
RGBrgb(95, 34, 165)
HSLhsl(268, 66%, 39%)
HSVhsv(268, 79%, 65%)
CMYKcmyk(42.4%, 79.4%, 0%, 35.3%)
CIE-LABlab(30.14, 52.51, -58.96)
CIE-LCHlch(30.14, 78.95, 311.69°)
OKLaboklab(42.17% 0.0924 -0.1687)
OKLCHoklch(42.17% 0.192 298.7)
XYZxyz(12.0811, 6.2934, 36.1683)
Luminance0.0629 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F22A5 #68A522
analogous
#2227A5 #5F22A5 #A122A5
triadic
#5F22A5 #A55F22 #22A55F
tetradic
#5F22A5 #A52227 #68A522 #22A5A1
square
#5F22A5 #A52227 #68A522 #22A5A1
split-complementary
#5F22A5 #A5A122 #27A522
monochromatic
#250D40 #421872 #5F22A5 #7C30D4 #9C63DF

Accessibility & contrast

On white

9.30
#5F22A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#5F22A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F22A5
9.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F22A5#FFFFFF#000000##FFFFFF
##5F22A51.009.302.269.30
#FFFFFF9.301.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A9
Deuteranopia (green-blind)
#0046A3
Tritanopia (blue-blind)
#4D4663
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5f22a5;
/* rgb */ color: rgb(95, 34, 165);
/* oklch */ color: oklch(42.2% 0.192 298.7);
Tailwind
colors: {
  custom: {
    50: '#9365c1',
    500: '#5f22a5',
    950: '#000000',
  },
}
SCSS
$custom: #5f22a5;
$custom-light: #9365c1;
$custom-dark: #000000;
JSON
{
  "hex": "#5f22a5",
  "rgb": {
    "r": 95,
    "g": 34,
    "b": 165
  },
  "hsl": {
    "h": 267.939,
    "s": 65.829,
    "l": 39.02
  },
  "oklch": {
    "l": 0.42172,
    "c": 0.19235,
    "h": 298.7
  },
  "luminance": 0.06294
}

Semantic roles & 50–950 ramp

primary
#5F22A5
secondary
#95C45F
accent
#E93F9A
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5F22A5

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

Preview Lab → · Contrast checker → · Palette generator →

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