#5F307E#5F307E

#5F307E is a dark, vivid violet. Relative luminance 0.061; OKLCH L 40.8% C 0.131 H 309.6°. Best body text is #FFFFFF at 9.50:1 contrast (WCAG AA passes).

Color values

HEX#5F307E
RGBrgb(95, 48, 126)
HSLhsl(276, 45%, 34%)
HSVhsv(276, 62%, 49%)
CMYKcmyk(24.6%, 61.9%, 0%, 50.6%)
CIE-LABlab(29.55, 36.06, -35.91)
CIE-LCHlch(29.55, 50.89, 315.11°)
OKLaboklab(40.81% 0.0836 -0.1011)
OKLCHoklch(40.81% 0.131 309.6)
XYZxyz(9.5414, 6.0533, 20.4004)
Luminance0.0605 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F307E #4F7E30
analogous
#38307E #5F307E #7E3076
triadic
#5F307E #7E5F30 #307E5F
tetradic
#5F307E #7E3830 #4F7E30 #30767E
square
#5F307E #7E3830 #4F7E30 #30767E
split-complementary
#5F307E #767E30 #307E38
monochromatic
#1C0E25 #3E1F52 #5F307E #8041AA #9E64C4

Accessibility & contrast

On white

9.50
#5F307E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F307E
9.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F307E#FFFFFF#000000##FFFFFF
##5F307E1.009.502.219.50
#FFFFFF9.501.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#114480
Deuteranopia (green-blind)
#27467C
Tritanopia (blue-blind)
#5B3F52
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5f307e;
/* rgb */ color: rgb(95, 48, 126);
/* oklch */ color: oklch(40.8% 0.131 309.6);
Tailwind
colors: {
  custom: {
    50: '#8f6ba4',
    500: '#5f307e',
    950: '#000000',
  },
}
SCSS
$custom: #5f307e;
$custom-light: #8f6ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#5f307e",
  "rgb": {
    "r": 95,
    "g": 48,
    "b": 126
  },
  "hsl": {
    "h": 276.154,
    "s": 44.828,
    "l": 34.118
  },
  "oklch": {
    "l": 0.40807,
    "c": 0.13119,
    "h": 309.6
  },
  "luminance": 0.06053
}

Semantic roles & 50–950 ramp

primary
#5F307E
secondary
#7DAB5F
accent
#D55387
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D070F
muted
#7E7A7F

Preview Lab

Preview with #5F307E

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

Preview Lab → · Contrast checker → · Palette generator →

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