#5F3490#5F3490

#5F3490 is a dark, vivid violet. Relative luminance 0.069; OKLCH L 42.7% C 0.147 H 302.0°. Best body text is #FFFFFF at 8.82:1 contrast (WCAG AA passes).

Color values

HEX#5F3490
RGBrgb(95, 52, 144)
HSLhsl(268, 47%, 38%)
HSVhsv(268, 64%, 56%)
CMYKcmyk(34%, 63.9%, 0%, 43.5%)
CIE-LABlab(31.58, 38.41, -43.82)
CIE-LCHlch(31.58, 58.27, 311.24°)
OKLaboklab(42.68% 0.0778 -0.1243)
OKLCHoklch(42.68% 0.147 302)
XYZxyz(10.9802, 6.9025, 27.1340)
Luminance0.0690 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3490 #659034
analogous
#343790 #5F3490 #8D3490
triadic
#5F3490 #905F34 #34905F
tetradic
#5F3490 #903437 #659034 #34908D
square
#5F3490 #903437 #659034 #34908D
split-complementary
#5F3490 #908D34 #379034
monochromatic
#241436 #412463 #5F3490 #7D45BC #9C72CC

Accessibility & contrast

On white

8.82
#5F3490 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#5F3490 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F3490
8.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3490#FFFFFF#000000##FFFFFF
##5F34901.008.822.388.82
#FFFFFF8.821.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A93
Deuteranopia (green-blind)
#164A8E
Tritanopia (blue-blind)
#55485D
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5f3490;
/* rgb */ color: rgb(95, 52, 144);
/* oklch */ color: oklch(42.7% 0.147 302.0);
Tailwind
colors: {
  custom: {
    50: '#906eb1',
    500: '#5f3490',
    950: '#000000',
  },
}
SCSS
$custom: #5f3490;
$custom-light: #906eb1;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3490",
  "rgb": {
    "r": 95,
    "g": 52,
    "b": 144
  },
  "hsl": {
    "h": 268.043,
    "s": 46.939,
    "l": 38.431
  },
  "oklch": {
    "l": 0.42677,
    "c": 0.14666,
    "h": 302
  },
  "luminance": 0.06902
}

Semantic roles & 50–950 ramp

primary
#5F3490
secondary
#92B46B
accent
#D75198
background
#F9F6FB
surface
#F1ECF6
border
#CBC7D0
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5F3490

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

Preview Lab → · Contrast checker → · Palette generator →

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