#5F368D#5F368D

#5F368D is a dark, vivid violet. Relative luminance 0.070; OKLCH L 42.8% C 0.140 H 302.6°. Best body text is #FFFFFF at 8.75:1 contrast (WCAG AA passes).

Color values

HEX#5F368D
RGBrgb(95, 54, 141)
HSLhsl(268, 45%, 38%)
HSVhsv(268, 62%, 55%)
CMYKcmyk(32.6%, 61.7%, 0%, 44.7%)
CIE-LABlab(31.79, 36.50, -41.63)
CIE-LCHlch(31.79, 55.37, 311.24°)
OKLaboklab(42.76% 0.0754 -0.1179)
OKLCHoklch(42.76% 0.14 302.6)
XYZxyz(10.8451, 6.9943, 25.9728)
Luminance0.0699 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F368D #648D36
analogous
#36388D #5F368D #8A368D
triadic
#5F368D #8D5F36 #368D5F
tetradic
#5F368D #8D3638 #648D36 #368D8A
square
#5F368D #8D3638 #648D36 #368D8A
split-complementary
#5F368D #8D8A36 #388D36
monochromatic
#231434 #412561 #5F368D #7D47B9 #9C74CA

Accessibility & contrast

On white

8.75
#5F368D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#5F368D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F368D
8.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F368D#FFFFFF#000000##FFFFFF
##5F368D1.008.752.408.75
#FFFFFF8.751.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#064A90
Deuteranopia (green-blind)
#1E4B8B
Tritanopia (blue-blind)
#56485C
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5f368d;
/* rgb */ color: rgb(95, 54, 141);
/* oklch */ color: oklch(42.8% 0.140 302.6);
Tailwind
colors: {
  custom: {
    50: '#906faf',
    500: '#5f368d',
    950: '#000000',
  },
}
SCSS
$custom: #5f368d;
$custom-light: #906faf;
$custom-dark: #000000;
JSON
{
  "hex": "#5f368d",
  "rgb": {
    "r": 95,
    "g": 54,
    "b": 141
  },
  "hsl": {
    "h": 268.276,
    "s": 44.615,
    "l": 38.235
  },
  "oklch": {
    "l": 0.42763,
    "c": 0.13996,
    "h": 302.6
  },
  "luminance": 0.06994
}

Semantic roles & 50–950 ramp

primary
#5F368D
secondary
#91B26D
accent
#D45398
background
#F9F6FA
surface
#F1ECF4
border
#CBC7CE
text
#0D0710
muted
#7E7A7F

Preview Lab

Preview with #5F368D

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

Preview Lab → · Contrast checker → · Palette generator →

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