#5F20BC#5F20BC

#5F20BC is a dark, highly saturated violet. Relative luminance 0.071; OKLCH L 44.1% C 0.218 H 293.3°. Best body text is #FFFFFF at 8.68:1 contrast (WCAG AA passes).

Color values

HEX#5F20BC
RGBrgb(95, 32, 188)
HSLhsl(264, 71%, 43%)
HSVhsv(264, 83%, 74%)
CMYKcmyk(49.5%, 83%, 0%, 26.3%)
CIE-LABlab(32.03, 58.99, -69.61)
CIE-LCHlch(32.03, 91.24, 310.28°)
OKLaboklab(44.13% 0.0862 -0.1999)
OKLCHoklch(44.13% 0.218 293.3)
XYZxyz(14.3104, 7.0963, 48.1829)
Luminance0.0710 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F20BC #7DBC20
analogous
#202FBC #5F20BC #AD20BC
triadic
#5F20BC #BC5F20 #20BC5F
tetradic
#5F20BC #BC202F #7DBC20 #20BCAD
square
#5F20BC #BC202F #7DBC20 #20BCAD
split-complementary
#5F20BC #BCAD20 #2FBC20
monochromatic
#2A0E53 #451788 #5F20BC #7D3BDE #A070E7

Accessibility & contrast

On white

8.68
#5F20BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#5F20BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F20BC
8.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F20BC#FFFFFF#000000##FFFFFF
##5F20BC1.008.682.428.68
#FFFFFF8.681.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DC0
Deuteranopia (green-blind)
#0048B9
Tritanopia (blue-blind)
#414F70
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5f20bc;
/* rgb */ color: rgb(95, 32, 188);
/* oklch */ color: oklch(44.1% 0.218 293.3);
Tailwind
colors: {
  custom: {
    50: '#9665d1',
    500: '#5f20bc',
    950: '#000000',
  },
}
SCSS
$custom: #5f20bc;
$custom-light: #9665d1;
$custom-dark: #000000;
JSON
{
  "hex": "#5f20bc",
  "rgb": {
    "r": 95,
    "g": 32,
    "b": 188
  },
  "hsl": {
    "h": 264.231,
    "s": 70.909,
    "l": 43.137
  },
  "oklch": {
    "l": 0.44128,
    "c": 0.21768,
    "h": 293.3
  },
  "luminance": 0.07097
}

Semantic roles & 50–950 ramp

primary
#5F20BC
secondary
#A5CD6B
accent
#EE3AA5
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0F0614
muted
#7E7A83

Preview Lab

Preview with #5F20BC

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

Preview Lab → · Contrast checker → · Palette generator →

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