#5F20A7#5F20A7

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

Color values

HEX#5F20A7
RGBrgb(95, 32, 167)
HSLhsl(268, 68%, 39%)
HSVhsv(268, 81%, 65%)
CMYKcmyk(43.1%, 80.8%, 0%, 34.5%)
CIE-LABlab(30.05, 53.80, -60.32)
CIE-LCHlch(30.05, 80.82, 311.73°)
OKLaboklab(42.16% 0.0933 -0.1727)
OKLCHoklch(42.16% 0.196 298.4)
XYZxyz(12.2091, 6.2557, 37.1160)
Luminance0.0626 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F20A7 #68A720
analogous
#2025A7 #5F20A7 #A320A7
triadic
#5F20A7 #A75F20 #20A75F
tetradic
#5F20A7 #A72025 #68A720 #20A7A3
square
#5F20A7 #A72025 #68A720 #20A7A3
split-complementary
#5F20A7 #A7A320 #25A720
monochromatic
#250C40 #421674 #5F20A7 #7C2DD7 #9C61E1

Accessibility & contrast

On white

9.33
#5F20A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#5F20A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F20A7
9.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F20A7#FFFFFF#000000##FFFFFF
##5F20A71.009.332.259.33
#FFFFFF9.331.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AB
Deuteranopia (green-blind)
#0045A4
Tritanopia (blue-blind)
#4D4664
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5f20a7;
/* rgb */ color: rgb(95, 32, 167);
/* oklch */ color: oklch(42.2% 0.196 298.4);
Tailwind
colors: {
  custom: {
    50: '#9464c2',
    500: '#5f20a7',
    950: '#000000',
  },
}
SCSS
$custom: #5f20a7;
$custom-light: #9464c2;
$custom-dark: #000000;
JSON
{
  "hex": "#5f20a7",
  "rgb": {
    "r": 95,
    "g": 32,
    "b": 167
  },
  "hsl": {
    "h": 268,
    "s": 67.839,
    "l": 39.02
  },
  "oklch": {
    "l": 0.42163,
    "c": 0.19627,
    "h": 298.4
  },
  "luminance": 0.06256
}

Semantic roles & 50–950 ramp

primary
#5F20A7
secondary
#95C55D
accent
#EB3D9A
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5F20A7

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

Preview Lab → · Contrast checker → · Palette generator →

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