#5F3A8A#5F3A8A

#5F3A8A is a dark, vivid violet. Relative luminance 0.073; OKLCH L 43.2% C 0.130 H 302.7°. Best body text is #FFFFFF at 8.54:1 contrast (WCAG AA passes).

Color values

HEX#5F3A8A
RGBrgb(95, 58, 138)
HSLhsl(268, 41%, 38%)
HSVhsv(268, 58%, 54%)
CMYKcmyk(31.2%, 58%, 0%, 45.9%)
CIE-LABlab(32.47, 33.41, -38.70)
CIE-LCHlch(32.47, 51.13, 310.80°)
OKLaboklab(43.19% 0.0701 -0.1093)
OKLCHoklch(43.19% 0.13 302.7)
XYZxyz(10.8188, 7.2940, 24.8777)
Luminance0.0729 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3A8A #658A3A
analogous
#3A3D8A #5F3A8A #873A8A
triadic
#5F3A8A #8A5F3A #3A8A5F
tetradic
#5F3A8A #8A3A3D #658A3A #3A8A87
square
#5F3A8A #8A3A3D #658A3A #3A8A87
split-complementary
#5F3A8A #8A873A #3D8A3A
monochromatic
#241634 #41285F #5F3A8A #7D4DB4 #9C78C6

Accessibility & contrast

On white

8.54
#5F3A8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F3A8A
8.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3A8A#FFFFFF#000000##FFFFFF
##5F3A8A1.008.542.468.54
#FFFFFF8.541.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#194C8D
Deuteranopia (green-blind)
#274C88
Tritanopia (blue-blind)
#574A5C
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5f3a8a;
/* rgb */ color: rgb(95, 58, 138);
/* oklch */ color: oklch(43.2% 0.130 302.7);
Tailwind
colors: {
  custom: {
    50: '#8f72ad',
    500: '#5f3a8a',
    950: '#000000',
  },
}
SCSS
$custom: #5f3a8a;
$custom-light: #8f72ad;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3a8a",
  "rgb": {
    "r": 95,
    "g": 58,
    "b": 138
  },
  "hsl": {
    "h": 267.75,
    "s": 40.816,
    "l": 38.431
  },
  "oklch": {
    "l": 0.43192,
    "c": 0.12986,
    "h": 302.7
  },
  "luminance": 0.07294
}

Semantic roles & 50–950 ramp

primary
#5F3A8A
secondary
#92B070
accent
#D15798
background
#F9F6FA
surface
#F1ECF4
border
#CBC7CE
text
#0D0810
muted
#7E7B7F

Preview Lab

Preview with #5F3A8A

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

Preview Lab → · Contrast checker → · Palette generator →

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