#5F398E#5F398E

#5F398E is a dark, vivid violet. Relative luminance 0.073; OKLCH L 43.3% C 0.137 H 301.6°. Best body text is #FFFFFF at 8.53:1 contrast (WCAG AA passes).

Color values

HEX#5F398E
RGBrgb(95, 57, 142)
HSLhsl(267, 43%, 39%)
HSVhsv(267, 60%, 56%)
CMYKcmyk(33.1%, 59.9%, 0%, 44.3%)
CIE-LABlab(32.51, 35.05, -41.10)
CIE-LCHlch(32.51, 54.02, 310.46°)
OKLaboklab(43.31% 0.0715 -0.1164)
OKLCHoklch(43.31% 0.137 301.6)
XYZxyz(11.0638, 7.3121, 26.4144)
Luminance0.0731 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F398E #688E39
analogous
#393D8E #5F398E #8A398E
triadic
#5F398E #8E5F39 #398E5F
tetradic
#5F398E #8E393D #688E39 #398E8A
square
#5F398E #8E393D #688E39 #398E8A
split-complementary
#5F398E #8E8A39 #3D8E39
monochromatic
#251637 #422762 #5F398E #7C4DB7 #9C78C9

Accessibility & contrast

On white

8.53
#5F398E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#5F398E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F398E
8.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F398E#FFFFFF#000000##FFFFFF
##5F398E1.008.532.468.53
#FFFFFF8.531.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#104C91
Deuteranopia (green-blind)
#214C8C
Tritanopia (blue-blind)
#564A5E
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5f398e;
/* rgb */ color: rgb(95, 57, 142);
/* oklch */ color: oklch(43.3% 0.137 301.6);
Tailwind
colors: {
  custom: {
    50: '#9071b0',
    500: '#5f398e',
    950: '#000000',
  },
}
SCSS
$custom: #5f398e;
$custom-light: #9071b0;
$custom-dark: #000000;
JSON
{
  "hex": "#5f398e",
  "rgb": {
    "r": 95,
    "g": 57,
    "b": 142
  },
  "hsl": {
    "h": 266.824,
    "s": 42.714,
    "l": 39.02
  },
  "oklch": {
    "l": 0.43306,
    "c": 0.13655,
    "h": 301.6
  },
  "luminance": 0.07312
}

Semantic roles & 50–950 ramp

primary
#5F398E
secondary
#95B271
accent
#D2559B
background
#F9F6FA
surface
#F1ECF5
border
#CBC7CF
text
#0D0810
muted
#7E7B7F

Preview Lab

Preview with #5F398E

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

Preview Lab → · Contrast checker → · Palette generator →

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