#5F359B#5F359B

#5F359B is a dark, vivid violet. Relative luminance 0.073; OKLCH L 43.6% C 0.159 H 298.5°. Best body text is #FFFFFF at 8.50:1 contrast (WCAG AA passes).

Color values

HEX#5F359B
RGBrgb(95, 53, 155)
HSLhsl(265, 49%, 41%)
HSVhsv(265, 66%, 61%)
CMYKcmyk(38.7%, 65.8%, 0%, 39.2%)
CIE-LABlab(32.58, 40.78, -48.93)
CIE-LCHlch(32.58, 63.70, 309.81°)
OKLaboklab(43.65% 0.0757 -0.1393)
OKLCHoklch(43.65% 0.159 298.5)
XYZxyz(11.9073, 7.3455, 31.7945)
Luminance0.0735 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F359B #719B35
analogous
#353E9B #5F359B #92359B
triadic
#5F359B #9B5F35 #359B5F
tetradic
#5F359B #9B353E #719B35 #359B92
square
#5F359B #9B353E #719B35 #359B92
split-complementary
#5F359B #9B9235 #3E9B35
monochromatic
#271640 #43256D #5F359B #7C4CC2 #9D79D1

Accessibility & contrast

On white

8.50
#5F359B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#5F359B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F359B
8.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F359B#FFFFFF#000000##FFFFFF
##5F359B1.008.502.478.50
#FFFFFF8.501.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9E
Deuteranopia (green-blind)
#004C99
Tritanopia (blue-blind)
#514C63
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5f359b;
/* rgb */ color: rgb(95, 53, 155);
/* oklch */ color: oklch(43.6% 0.159 298.5);
Tailwind
colors: {
  custom: {
    50: '#916fb9',
    500: '#5f359b',
    950: '#000000',
  },
}
SCSS
$custom: #5f359b;
$custom-light: #916fb9;
$custom-dark: #000000;
JSON
{
  "hex": "#5f359b",
  "rgb": {
    "r": 95,
    "g": 53,
    "b": 155
  },
  "hsl": {
    "h": 264.706,
    "s": 49.038,
    "l": 40.784
  },
  "oklch": {
    "l": 0.4365,
    "c": 0.15858,
    "h": 298.5
  },
  "luminance": 0.07346
}

Semantic roles & 50–950 ramp

primary
#5F359B
secondary
#9CBA72
accent
#D94FA0
background
#F9F6FB
surface
#F2ECF6
border
#CCC7D0
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5F359B

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

Preview Lab → · Contrast checker → · Palette generator →

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