#5F367A#5F367A

#5F367A is a dark, moderate violet. Relative luminance 0.065; OKLCH L 41.5% C 0.116 H 310.1°. Best body text is #FFFFFF at 9.15:1 contrast (WCAG AA passes).

Color values

HEX#5F367A
RGBrgb(95, 54, 122)
HSLhsl(276, 39%, 35%)
HSVhsv(276, 56%, 48%)
CMYKcmyk(22.1%, 55.7%, 0%, 52.2%)
CIE-LABlab(30.58, 31.66, -31.75)
CIE-LCHlch(30.58, 44.84, 314.92°)
OKLaboklab(41.49% 0.075 -0.089)
OKLCHoklch(41.49% 0.116 310.1)
XYZxyz(9.5507, 6.4765, 19.1556)
Luminance0.0648 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F367A #517A36
analogous
#3D367A #5F367A #7A3673
triadic
#5F367A #7A5F36 #367A5F
tetradic
#5F367A #7A3D36 #517A36 #36737A
square
#5F367A #7A3D36 #517A36 #36737A
split-complementary
#5F367A #737A36 #367A3D
monochromatic
#1D1025 #3E2350 #5F367A #8049A4 #9E6CBE

Accessibility & contrast

On white

9.15
#5F367A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#5F367A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F367A
9.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F367A#FFFFFF#000000##FFFFFF
##5F367A1.009.152.309.15
#FFFFFF9.151.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#22467C
Deuteranopia (green-blind)
#304978
Tritanopia (blue-blind)
#5C4252
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5f367a;
/* rgb */ color: rgb(95, 54, 122);
/* oklch */ color: oklch(41.5% 0.116 310.1);
Tailwind
colors: {
  custom: {
    50: '#8e6fa1',
    500: '#5f367a',
    950: '#000000',
  },
}
SCSS
$custom: #5f367a;
$custom-light: #8e6fa1;
$custom-dark: #000000;
JSON
{
  "hex": "#5f367a",
  "rgb": {
    "r": 95,
    "g": 54,
    "b": 122
  },
  "hsl": {
    "h": 276.176,
    "s": 38.636,
    "l": 34.51
  },
  "oklch": {
    "l": 0.41487,
    "c": 0.11632,
    "h": 310.1
  },
  "luminance": 0.06476
}

Semantic roles & 50–950 ramp

primary
#5F367A
secondary
#7FA765
accent
#CF5988
background
#F8F6F9
surface
#F0ECF2
border
#CBC7CC
text
#0C070F
muted
#7D7A7E

Preview Lab

Preview with #5F367A

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

Preview Lab → · Contrast checker → · Palette generator →

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