#5F388E#5F388E

#5F388E is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.1% C 0.138 H 301.8°. Best body text is #FFFFFF at 8.60:1 contrast (WCAG AA passes).

Color values

HEX#5F388E
RGBrgb(95, 56, 142)
HSLhsl(267, 43%, 39%)
HSVhsv(267, 61%, 56%)
CMYKcmyk(33.1%, 60.6%, 0%, 44.3%)
CIE-LABlab(32.29, 35.63, -41.45)
CIE-LCHlch(32.29, 54.66, 310.68°)
OKLaboklab(43.15% 0.0728 -0.1174)
OKLCHoklch(43.15% 0.138 301.8)
XYZxyz(11.0148, 7.2142, 26.3981)
Luminance0.0721 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F388E #678E38
analogous
#383C8E #5F388E #8A388E
triadic
#5F388E #8E5F38 #388E5F
tetradic
#5F388E #8E383C #678E38 #388E8A
square
#5F388E #8E383C #678E38 #388E8A
split-complementary
#5F388E #8E8A38 #3C8E38
monochromatic
#241536 #422762 #5F388E #7D4BB8 #9C77C9

Accessibility & contrast

On white

8.60
#5F388E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#5F388E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F388E
8.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F388E#FFFFFF#000000##FFFFFF
##5F388E1.008.602.448.60
#FFFFFF8.601.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C4B91
Deuteranopia (green-blind)
#204C8C
Tritanopia (blue-blind)
#564A5D
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5f388e;
/* rgb */ color: rgb(95, 56, 142);
/* oklch */ color: oklch(43.1% 0.138 301.8);
Tailwind
colors: {
  custom: {
    50: '#9070b0',
    500: '#5f388e',
    950: '#000000',
  },
}
SCSS
$custom: #5f388e;
$custom-light: #9070b0;
$custom-dark: #000000;
JSON
{
  "hex": "#5f388e",
  "rgb": {
    "r": 95,
    "g": 56,
    "b": 142
  },
  "hsl": {
    "h": 267.209,
    "s": 43.434,
    "l": 38.824
  },
  "oklch": {
    "l": 0.43147,
    "c": 0.13811,
    "h": 301.8
  },
  "luminance": 0.07214
}

Semantic roles & 50–950 ramp

primary
#5F388E
secondary
#94B26F
accent
#D3559A
background
#F9F6FA
surface
#F1ECF5
border
#CBC7CF
text
#0D0810
muted
#7E7B7F

Preview Lab

Preview with #5F388E

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

Preview Lab → · Contrast checker → · Palette generator →

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