#5F367D#5F367D

#5F367D is a dark, vivid violet. Relative luminance 0.066; OKLCH L 41.7% C 0.120 H 308.8°. Best body text is #FFFFFF at 9.09:1 contrast (WCAG AA passes).

Color values

HEX#5F367D
RGBrgb(95, 54, 125)
HSLhsl(275, 40%, 35%)
HSVhsv(275, 57%, 49%)
CMYKcmyk(24%, 56.8%, 0%, 51%)
CIE-LABlab(30.76, 32.40, -33.34)
CIE-LCHlch(30.76, 46.50, 314.18°)
OKLaboklab(41.68% 0.0752 -0.0936)
OKLCHoklch(41.68% 0.12 308.8)
XYZxyz(9.7394, 6.5520, 20.1497)
Luminance0.0655 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F367D #547D36
analogous
#3B367D #5F367D #7D3677
triadic
#5F367D #7D5F36 #367D5F
tetradic
#5F367D #7D3B36 #547D36 #36777D
square
#5F367D #7D3B36 #547D36 #36777D
split-complementary
#5F367D #777D36 #367D3B
monochromatic
#1E1128 #3F2452 #5F367D #7F48A8 #9D6DC0

Accessibility & contrast

On white

9.09
#5F367D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#5F367D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F367D
9.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F367D#FFFFFF#000000##FFFFFF
##5F367D1.009.092.319.09
#FFFFFF9.091.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#20477F
Deuteranopia (green-blind)
#2E497B
Tritanopia (blue-blind)
#5B4354
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5f367d;
/* rgb */ color: rgb(95, 54, 125);
/* oklch */ color: oklch(41.7% 0.120 308.8);
Tailwind
colors: {
  custom: {
    50: '#8f6fa3',
    500: '#5f367d',
    950: '#000000',
  },
}
SCSS
$custom: #5f367d;
$custom-light: #8f6fa3;
$custom-dark: #000000;
JSON
{
  "hex": "#5f367d",
  "rgb": {
    "r": 95,
    "g": 54,
    "b": 125
  },
  "hsl": {
    "h": 274.648,
    "s": 39.665,
    "l": 35.098
  },
  "oklch": {
    "l": 0.41678,
    "c": 0.12005,
    "h": 308.8
  },
  "luminance": 0.06552
}

Semantic roles & 50–950 ramp

primary
#5F367D
secondary
#82A966
accent
#D0588B
background
#F8F6FA
surface
#F0ECF4
border
#CBC7CE
text
#0C070F
muted
#7D7A7F

Preview Lab

Preview with #5F367D

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

Preview Lab → · Contrast checker → · Palette generator →

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