#5F309E#5F309E

#5F309E is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.2% C 0.169 H 298.6°. Best body text is #FFFFFF at 8.74:1 contrast (WCAG AA passes).

Color values

HEX#5F309E
RGBrgb(95, 48, 158)
HSLhsl(266, 53%, 40%)
HSVhsv(266, 70%, 62%)
CMYKcmyk(39.9%, 69.6%, 0%, 38%)
CIE-LABlab(31.84, 44.24, -51.95)
CIE-LCHlch(31.84, 68.23, 310.42°)
OKLaboklab(43.19% 0.0809 -0.1482)
OKLCHoklch(43.19% 0.169 298.6)
XYZxyz(11.9463, 7.0153, 33.0658)
Luminance0.0702 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F309E #6F9E30
analogous
#30389E #5F309E #96309E
triadic
#5F309E #9E5F30 #309E5F
tetradic
#5F309E #9E3038 #6F9E30 #309E96
square
#5F309E #9E3038 #6F9E30 #309E96
split-complementary
#5F309E #9E9630 #389E30
monochromatic
#271340 #43226F #5F309E #7C45C6 #9D74D5

Accessibility & contrast

On white

8.74
#5F309E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F309E
8.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F309E#FFFFFF#000000##FFFFFF
##5F309E1.008.742.408.74
#FFFFFF8.741.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA1
Deuteranopia (green-blind)
#004A9C
Tritanopia (blue-blind)
#504A63
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5f309e;
/* rgb */ color: rgb(95, 48, 158);
/* oklch */ color: oklch(43.2% 0.169 298.6);
Tailwind
colors: {
  custom: {
    50: '#926cbb',
    500: '#5f309e',
    950: '#000000',
  },
}
SCSS
$custom: #5f309e;
$custom-light: #926cbb;
$custom-dark: #000000;
JSON
{
  "hex": "#5f309e",
  "rgb": {
    "r": 95,
    "g": 48,
    "b": 158
  },
  "hsl": {
    "h": 265.636,
    "s": 53.398,
    "l": 40.392
  },
  "oklch": {
    "l": 0.43191,
    "c": 0.16884,
    "h": 298.6
  },
  "luminance": 0.07015
}

Semantic roles & 50–950 ramp

primary
#5F309E
secondary
#9BBD6D
accent
#DD4B9F
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5F309E

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

Preview Lab → · Contrast checker → · Palette generator →

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