#5F20A8#5F20A8

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

Color values

HEX#5F20A8
RGBrgb(95, 32, 168)
HSLhsl(268, 68%, 39%)
HSVhsv(268, 81%, 66%)
CMYKcmyk(43.5%, 81%, 0%, 34.1%)
CIE-LABlab(30.14, 54.04, -60.77)
CIE-LCHlch(30.14, 81.32, 311.65°)
OKLaboklab(42.25% 0.093 -0.174)
OKLCHoklch(42.25% 0.197 298.1)
XYZxyz(12.3019, 6.2929, 37.6047)
Luminance0.0629 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F20A8 #69A820
analogous
#2025A8 #5F20A8 #A320A8
triadic
#5F20A8 #A85F20 #20A85F
tetradic
#5F20A8 #A82025 #69A820 #20A8A3
square
#5F20A8 #A82025 #69A820 #20A8A3
split-complementary
#5F20A8 #A8A320 #25A820
monochromatic
#250C41 #421675 #5F20A8 #7C2ED7 #9D61E1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5F20A8#FFFFFF#000000##FFFFFF
##5F20A81.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)
#0047AC
Deuteranopia (green-blind)
#0045A5
Tritanopia (blue-blind)
#4C4765
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5f20a8;
/* rgb */ color: rgb(95, 32, 168);
/* oklch */ color: oklch(42.3% 0.197 298.1);
Tailwind
colors: {
  custom: {
    50: '#9464c3',
    500: '#5f20a8',
    950: '#000000',
  },
}
SCSS
$custom: #5f20a8;
$custom-light: #9464c3;
$custom-dark: #000000;
JSON
{
  "hex": "#5f20a8",
  "rgb": {
    "r": 95,
    "g": 32,
    "b": 168
  },
  "hsl": {
    "h": 267.794,
    "s": 68,
    "l": 39.216
  },
  "oklch": {
    "l": 0.42254,
    "c": 0.19729,
    "h": 298.1
  },
  "luminance": 0.06293
}

Semantic roles & 50–950 ramp

primary
#5F20A8
secondary
#96C65E
accent
#EB3D9A
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5F20A8

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

Preview Lab → · Contrast checker → · Palette generator →

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