#5F309A#5F309A

#5F309A is a dark, vivid violet. Relative luminance 0.069; OKLCH L 42.9% C 0.164 H 299.8°. Best body text is #FFFFFF at 8.84:1 contrast (WCAG AA passes).

Color values

HEX#5F309A
RGBrgb(95, 48, 154)
HSLhsl(267, 52%, 40%)
HSVhsv(267, 69%, 60%)
CMYKcmyk(38.3%, 68.8%, 0%, 39.6%)
CIE-LABlab(31.53, 43.19, -50.02)
CIE-LCHlch(31.53, 66.09, 310.81°)
OKLaboklab(42.87% 0.0815 -0.1425)
OKLCHoklch(42.87% 0.164 299.8)
XYZxyz(11.6076, 6.8798, 31.2820)
Luminance0.0688 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F309A #6B9A30
analogous
#30369A #5F309A #94309A
triadic
#5F309A #9A5F30 #309A5F
tetradic
#5F309A #9A3036 #6B9A30 #309A94
square
#5F309A #9A3036 #6B9A30 #309A94
split-complementary
#5F309A #9A9430 #369A30
monochromatic
#25133D #42216B #5F309A #7C43C4 #9D72D3

Accessibility & contrast

On white

8.84
#5F309A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#5F309A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F309A
8.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F309A#FFFFFF#000000##FFFFFF
##5F309A1.008.842.388.84
#FFFFFF8.841.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9D
Deuteranopia (green-blind)
#004998
Tritanopia (blue-blind)
#524961
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5f309a;
/* rgb */ color: rgb(95, 48, 154);
/* oklch */ color: oklch(42.9% 0.164 299.8);
Tailwind
colors: {
  custom: {
    50: '#916cb8',
    500: '#5f309a',
    950: '#000000',
  },
}
SCSS
$custom: #5f309a;
$custom-light: #916cb8;
$custom-dark: #000000;
JSON
{
  "hex": "#5f309a",
  "rgb": {
    "r": 95,
    "g": 48,
    "b": 154
  },
  "hsl": {
    "h": 266.604,
    "s": 52.475,
    "l": 39.608
  },
  "oklch": {
    "l": 0.42872,
    "c": 0.16419,
    "h": 299.8
  },
  "luminance": 0.0688
}

Semantic roles & 50–950 ramp

primary
#5F309A
secondary
#97BB6B
accent
#DC4C9C
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5F309A

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

Preview Lab → · Contrast checker → · Palette generator →

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