#5F2090#5F2090

#5F2090 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.2% C 0.173 H 305.3°. Best body text is #FFFFFF at 10.02:1 contrast (WCAG AA passes).

Color values

HEX#5F2090
RGBrgb(95, 32, 144)
HSLhsl(274, 64%, 35%)
HSVhsv(274, 78%, 56%)
CMYKcmyk(34%, 77.8%, 0%, 43.5%)
CIE-LABlab(28.06, 48.23, -49.53)
CIE-LCHlch(28.06, 69.13, 314.24°)
OKLaboklab(40.16% 0.0997 -0.141)
OKLCHoklch(40.16% 0.173 305.3)
XYZxyz(10.2687, 5.4796, 26.8968)
Luminance0.0548 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2090 #519020
analogous
#272090 #5F2090 #902089
triadic
#5F2090 #905F20 #20905F
tetradic
#5F2090 #902720 #519020 #208990
square
#5F2090 #902720 #519020 #208990
split-complementary
#5F2090 #899020 #209027
monochromatic
#1D0A2C #3E155E #5F2090 #802BC2 #9E52D9

Accessibility & contrast

On white

10.02
#5F2090 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#5F2090 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2090
10.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2090#FFFFFF#000000##FFFFFF
##5F20901.0010.022.1010.02
#FFFFFF10.021.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004193
Deuteranopia (green-blind)
#00428E
Tritanopia (blue-blind)
#563C57
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5f2090;
/* rgb */ color: rgb(95, 32, 144);
/* oklch */ color: oklch(40.2% 0.173 305.3);
Tailwind
colors: {
  custom: {
    50: '#9163b1',
    500: '#5f2090',
    950: '#000000',
  },
}
SCSS
$custom: #5f2090;
$custom-light: #9163b1;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2090",
  "rgb": {
    "r": 95,
    "g": 32,
    "b": 144
  },
  "hsl": {
    "h": 273.75,
    "s": 63.636,
    "l": 34.51
  },
  "oklch": {
    "l": 0.40159,
    "c": 0.17269,
    "h": 305.3
  },
  "luminance": 0.0548
}

Semantic roles & 50–950 ramp

primary
#5F2090
secondary
#7FBC50
accent
#E7418A
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5F2090

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

Preview Lab → · Contrast checker → · Palette generator →

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