#5F2190#5F2190

#5F2190 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.3% C 0.172 H 305.1°. Best body text is #FFFFFF at 9.97:1 contrast (WCAG AA passes).

Color values

HEX#5F2190
RGBrgb(95, 33, 144)
HSLhsl(274, 63%, 35%)
HSVhsv(274, 77%, 56%)
CMYKcmyk(34%, 77.1%, 0%, 43.5%)
CIE-LABlab(28.21, 47.81, -49.29)
CIE-LCHlch(28.21, 68.66, 314.13°)
OKLaboklab(40.26% 0.0988 -0.1403)
OKLCHoklch(40.26% 0.172 305.1)
XYZxyz(10.2961, 5.5343, 26.9060)
Luminance0.0553 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2190 #529021
analogous
#282190 #5F2190 #902189
triadic
#5F2190 #905F21 #21905F
tetradic
#5F2190 #902821 #529021 #218990
square
#5F2190 #902821 #529021 #218990
split-complementary
#5F2190 #899021 #219028
monochromatic
#1D0A2C #3E165E #5F2190 #802CC2 #9D54D8

Accessibility & contrast

On white

9.97
#5F2190 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#5F2190 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2190
9.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2190#FFFFFF#000000##FFFFFF
##5F21901.009.972.119.97
#FFFFFF9.971.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004193
Deuteranopia (green-blind)
#00438E
Tritanopia (blue-blind)
#563D57
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5f2190;
/* rgb */ color: rgb(95, 33, 144);
/* oklch */ color: oklch(40.3% 0.172 305.1);
Tailwind
colors: {
  custom: {
    50: '#9163b1',
    500: '#5f2190',
    950: '#000000',
  },
}
SCSS
$custom: #5f2190;
$custom-light: #9163b1;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2190",
  "rgb": {
    "r": 95,
    "g": 33,
    "b": 144
  },
  "hsl": {
    "h": 273.514,
    "s": 62.712,
    "l": 34.706
  },
  "oklch": {
    "l": 0.40262,
    "c": 0.17159,
    "h": 305.1
  },
  "luminance": 0.05534
}

Semantic roles & 50–950 ramp

primary
#5F2190
secondary
#80BB51
accent
#E6428A
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5F2190

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

Preview Lab → · Contrast checker → · Palette generator →

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