#5F307D#5F307D

#5F307D is a dark, vivid violet. Relative luminance 0.060; OKLCH L 40.7% C 0.130 H 310.0°. Best body text is #FFFFFF at 9.52:1 contrast (WCAG AA passes).

Color values

HEX#5F307D
RGBrgb(95, 48, 125)
HSLhsl(277, 45%, 34%)
HSVhsv(277, 62%, 49%)
CMYKcmyk(24%, 61.6%, 0%, 51%)
CIE-LABlab(29.48, 35.81, -35.39)
CIE-LCHlch(29.48, 50.35, 315.34°)
OKLaboklab(40.74% 0.0836 -0.0996)
OKLCHoklch(40.74% 0.13 310)
XYZxyz(9.4772, 6.0276, 20.0623)
Luminance0.0603 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F307D #4E7D30
analogous
#39307D #5F307D #7D3075
triadic
#5F307D #7D5F30 #307D5F
tetradic
#5F307D #7D3930 #4E7D30 #30757D
square
#5F307D #7D3930 #4E7D30 #30757D
split-complementary
#5F307D #757D30 #307D39
monochromatic
#1C0E25 #3D1F51 #5F307D #8141A9 #9E64C3

Accessibility & contrast

On white

9.52
#5F307D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#5F307D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F307D
9.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F307D#FFFFFF#000000##FFFFFF
##5F307D1.009.522.219.52
#FFFFFF9.521.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#13437F
Deuteranopia (green-blind)
#27467B
Tritanopia (blue-blind)
#5B3E51
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5f307d;
/* rgb */ color: rgb(95, 48, 125);
/* oklch */ color: oklch(40.7% 0.130 310.0);
Tailwind
colors: {
  custom: {
    50: '#8f6ba3',
    500: '#5f307d',
    950: '#000000',
  },
}
SCSS
$custom: #5f307d;
$custom-light: #8f6ba3;
$custom-dark: #000000;
JSON
{
  "hex": "#5f307d",
  "rgb": {
    "r": 95,
    "g": 48,
    "b": 125
  },
  "hsl": {
    "h": 276.623,
    "s": 44.509,
    "l": 33.922
  },
  "oklch": {
    "l": 0.40739,
    "c": 0.13001,
    "h": 310
  },
  "luminance": 0.06027
}

Semantic roles & 50–950 ramp

primary
#5F307D
secondary
#7CAB5E
accent
#D45486
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D070F
muted
#7E7A7F

Preview Lab

Preview with #5F307D

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

Preview Lab → · Contrast checker → · Palette generator →

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