#5F367B#5F367B

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

Color values

HEX#5F367B
RGBrgb(95, 54, 123)
HSLhsl(276, 39%, 35%)
HSVhsv(276, 56%, 48%)
CMYKcmyk(22.8%, 56.1%, 0%, 51.8%)
CIE-LABlab(30.64, 31.91, -32.28)
CIE-LCHlch(30.64, 45.39, 314.66°)
OKLaboklab(41.55% 0.075 -0.0905)
OKLCHoklch(41.55% 0.118 309.7)
XYZxyz(9.6130, 6.5015, 19.4835)
Luminance0.0650 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F367B #527B36
analogous
#3D367B #5F367B #7B3675
triadic
#5F367B #7B5F36 #367B5F
tetradic
#5F367B #7B3D36 #527B36 #36757B
square
#5F367B #7B3D36 #527B36 #36757B
split-complementary
#5F367B #757B36 #367B3D
monochromatic
#1D1126 #3E2350 #5F367B #8049A6 #9D6DBF

Accessibility & contrast

On white

9.13
#5F367B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F367B
9.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F367B#FFFFFF#000000##FFFFFF
##5F367B1.009.132.309.13
#FFFFFF9.131.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#22467D
Deuteranopia (green-blind)
#2F4979
Tritanopia (blue-blind)
#5B4253
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5f367b;
/* rgb */ color: rgb(95, 54, 123);
/* oklch */ color: oklch(41.5% 0.118 309.7);
Tailwind
colors: {
  custom: {
    50: '#8e6fa1',
    500: '#5f367b',
    950: '#000000',
  },
}
SCSS
$custom: #5f367b;
$custom-light: #8e6fa1;
$custom-dark: #000000;
JSON
{
  "hex": "#5f367b",
  "rgb": {
    "r": 95,
    "g": 54,
    "b": 123
  },
  "hsl": {
    "h": 275.652,
    "s": 38.983,
    "l": 34.706
  },
  "oklch": {
    "l": 0.4155,
    "c": 0.11757,
    "h": 309.7
  },
  "luminance": 0.06501
}

Semantic roles & 50–950 ramp

primary
#5F367B
secondary
#80A765
accent
#CF5989
background
#F8F6FA
surface
#F0ECF3
border
#CBC7CD
text
#0C070F
muted
#7D7A7F

Preview Lab

Preview with #5F367B

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

Preview Lab → · Contrast checker → · Palette generator →

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