#5F22A9#5F22A9

#5F22A9 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.5% C 0.196 H 297.6°. Best body text is #FFFFFF at 9.18:1 contrast (WCAG AA passes).

Color values

HEX#5F22A9
RGBrgb(95, 34, 169)
HSLhsl(267, 67%, 40%)
HSVhsv(267, 80%, 66%)
CMYKcmyk(43.8%, 79.9%, 0%, 33.7%)
CIE-LABlab(30.50, 53.51, -60.78)
CIE-LCHlch(30.50, 80.98, 311.36°)
OKLaboklab(42.53% 0.0912 -0.1741)
OKLCHoklch(42.53% 0.196 297.6)
XYZxyz(12.4509, 6.4413, 38.1157)
Luminance0.0644 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F22A9 #6CA922
analogous
#2229A9 #5F22A9 #A222A9
triadic
#5F22A9 #A95F22 #22A95F
tetradic
#5F22A9 #A92229 #6CA922 #22A9A2
square
#5F22A9 #A92229 #6CA922 #22A9A2
split-complementary
#5F22A9 #A9A222 #29A922
monochromatic
#260D43 #421876 #5F22A9 #7C32D6 #9D65E0

Accessibility & contrast

On white

9.18
#5F22A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#5F22A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F22A9
9.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F22A9#FFFFFF#000000##FFFFFF
##5F22A91.009.182.299.18
#FFFFFF9.181.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AD
Deuteranopia (green-blind)
#0046A6
Tritanopia (blue-blind)
#4C4866
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5f22a9;
/* rgb */ color: rgb(95, 34, 169);
/* oklch */ color: oklch(42.5% 0.196 297.6);
Tailwind
colors: {
  custom: {
    50: '#9465c4',
    500: '#5f22a9',
    950: '#000000',
  },
}
SCSS
$custom: #5f22a9;
$custom-light: #9465c4;
$custom-dark: #000000;
JSON
{
  "hex": "#5f22a9",
  "rgb": {
    "r": 95,
    "g": 34,
    "b": 169
  },
  "hsl": {
    "h": 267.111,
    "s": 66.502,
    "l": 39.804
  },
  "oklch": {
    "l": 0.42532,
    "c": 0.19649,
    "h": 297.6
  },
  "luminance": 0.06442
}

Semantic roles & 50–950 ramp

primary
#5F22A9
secondary
#98C561
accent
#E93E9C
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5F22A9

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

Preview Lab → · Contrast checker → · Palette generator →

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