#5F2290#5F2290

#5F2290 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.4% C 0.170 H 305.0°. Best body text is #FFFFFF at 9.91:1 contrast (WCAG AA passes).

Color values

HEX#5F2290
RGBrgb(95, 34, 144)
HSLhsl(273, 62%, 35%)
HSVhsv(273, 76%, 56%)
CMYKcmyk(34%, 76.4%, 0%, 43.5%)
CIE-LABlab(28.36, 47.38, -49.04)
CIE-LCHlch(28.36, 68.19, 314.01°)
OKLaboklab(40.37% 0.0978 -0.1396)
OKLCHoklch(40.37% 0.17 305)
XYZxyz(10.3242, 5.5906, 26.9153)
Luminance0.0559 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2290 #539022
analogous
#282290 #5F2290 #90228A
triadic
#5F2290 #905F22 #22905F
tetradic
#5F2290 #902822 #539022 #228A90
square
#5F2290 #902822 #539022 #228A90
split-complementary
#5F2290 #8A9022 #229028
monochromatic
#1E0B2D #3E165E #5F2290 #802EC2 #9D55D7

Accessibility & contrast

On white

9.91
#5F2290 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#5F2290 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2290
9.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2290#FFFFFF#000000##FFFFFF
##5F22901.009.912.129.91
#FFFFFF9.911.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.911.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: #5f2290;
/* rgb */ color: rgb(95, 34, 144);
/* oklch */ color: oklch(40.4% 0.170 305.0);
Tailwind
colors: {
  custom: {
    50: '#9164b1',
    500: '#5f2290',
    950: '#000000',
  },
}
SCSS
$custom: #5f2290;
$custom-light: #9164b1;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2290",
  "rgb": {
    "r": 95,
    "g": 34,
    "b": 144
  },
  "hsl": {
    "h": 273.273,
    "s": 61.798,
    "l": 34.902
  },
  "oklch": {
    "l": 0.40367,
    "c": 0.17046,
    "h": 305
  },
  "luminance": 0.05591
}

Semantic roles & 50–950 ramp

primary
#5F2290
secondary
#81BB53
accent
#E5438B
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5F2290

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

Preview Lab → · Contrast checker → · Palette generator →

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