#5F367C#5F367C

#5F367C is a dark, moderate violet. Relative luminance 0.065; OKLCH L 41.6% C 0.119 H 309.2°. Best body text is #FFFFFF at 9.11:1 contrast (WCAG AA passes).

Color values

HEX#5F367C
RGBrgb(95, 54, 124)
HSLhsl(275, 39%, 35%)
HSVhsv(275, 56%, 49%)
CMYKcmyk(23.4%, 56.5%, 0%, 51.4%)
CIE-LABlab(30.70, 32.15, -32.81)
CIE-LCHlch(30.70, 45.94, 314.42°)
OKLaboklab(41.61% 0.0751 -0.0921)
OKLCHoklch(41.61% 0.119 309.2)
XYZxyz(9.6759, 6.5266, 19.8149)
Luminance0.0653 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F367C #537C36
analogous
#3C367C #5F367C #7C3676
triadic
#5F367C #7C5F36 #367C5F
tetradic
#5F367C #7C3C36 #537C36 #36767C
square
#5F367C #7C3C36 #537C36 #36767C
split-complementary
#5F367C #767C36 #367C3C
monochromatic
#1E1127 #3E2351 #5F367C #8049A7 #9D6DBF

Accessibility & contrast

On white

9.11
#5F367C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F367C
9.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F367C#FFFFFF#000000##FFFFFF
##5F367C1.009.112.319.11
#FFFFFF9.111.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#21467E
Deuteranopia (green-blind)
#2E497A
Tritanopia (blue-blind)
#5B4253
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5f367c;
/* rgb */ color: rgb(95, 54, 124);
/* oklch */ color: oklch(41.6% 0.119 309.2);
Tailwind
colors: {
  custom: {
    50: '#8e6fa2',
    500: '#5f367c',
    950: '#000000',
  },
}
SCSS
$custom: #5f367c;
$custom-light: #8e6fa2;
$custom-dark: #000000;
JSON
{
  "hex": "#5f367c",
  "rgb": {
    "r": 95,
    "g": 54,
    "b": 124
  },
  "hsl": {
    "h": 275.143,
    "s": 39.326,
    "l": 34.902
  },
  "oklch": {
    "l": 0.41614,
    "c": 0.11881,
    "h": 309.2
  },
  "luminance": 0.06526
}

Semantic roles & 50–950 ramp

primary
#5F367C
secondary
#81A866
accent
#CF598A
background
#F8F6FA
surface
#F0ECF3
border
#CBC7CD
text
#0C070F
muted
#7D7A7F

Preview Lab

Preview with #5F367C

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

Preview Lab → · Contrast checker → · Palette generator →

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