#5F367E#5F367E

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

Color values

HEX#5F367E
RGBrgb(95, 54, 126)
HSLhsl(274, 40%, 35%)
HSVhsv(274, 57%, 49%)
CMYKcmyk(24.6%, 57.1%, 0%, 50.6%)
CIE-LABlab(30.83, 32.65, -33.87)
CIE-LCHlch(30.83, 47.05, 313.95°)
OKLaboklab(41.74% 0.0752 -0.0952)
OKLCHoklch(41.74% 0.121 308.3)
XYZxyz(9.8036, 6.5777, 20.4878)
Luminance0.0658 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F367E #557E36
analogous
#3B367E #5F367E #7E3679
triadic
#5F367E #7E5F36 #367E5F
tetradic
#5F367E #7E3B36 #557E36 #36797E
square
#5F367E #7E3B36 #557E36 #36797E
split-complementary
#5F367E #797E36 #367E3B
monochromatic
#1E1128 #3F2453 #5F367E #7F48A9 #9D6EC1

Accessibility & contrast

On white

9.07
#5F367E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#5F367E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F367E
9.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F367E#FFFFFF#000000##FFFFFF
##5F367E1.009.072.329.07
#FFFFFF9.071.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F4780
Deuteranopia (green-blind)
#2D497C
Tritanopia (blue-blind)
#5B4354
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5f367e;
/* rgb */ color: rgb(95, 54, 126);
/* oklch */ color: oklch(41.7% 0.121 308.3);
Tailwind
colors: {
  custom: {
    50: '#8f6fa4',
    500: '#5f367e',
    950: '#000000',
  },
}
SCSS
$custom: #5f367e;
$custom-light: #8f6fa4;
$custom-dark: #000000;
JSON
{
  "hex": "#5f367e",
  "rgb": {
    "r": 95,
    "g": 54,
    "b": 126
  },
  "hsl": {
    "h": 274.167,
    "s": 40,
    "l": 35.294
  },
  "oklch": {
    "l": 0.41743,
    "c": 0.12129,
    "h": 308.3
  },
  "luminance": 0.06578
}

Semantic roles & 50–950 ramp

primary
#5F367E
secondary
#83A967
accent
#D0588C
background
#F8F6FA
surface
#F0ECF4
border
#CBC7CE
text
#0D070F
muted
#7D7A7F

Preview Lab

Preview with #5F367E

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

Preview Lab → · Contrast checker → · Palette generator →

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