#5F307B#5F307B

#5F307B is a dark, vivid violet. Relative luminance 0.060; OKLCH L 40.6% C 0.128 H 310.9°. Best body text is #FFFFFF at 9.57:1 contrast (WCAG AA passes).

Color values

HEX#5F307B
RGBrgb(95, 48, 123)
HSLhsl(278, 44%, 34%)
HSVhsv(278, 61%, 48%)
CMYKcmyk(22.8%, 61%, 0%, 51.8%)
CIE-LABlab(29.35, 35.33, -34.34)
CIE-LCHlch(29.35, 49.26, 315.81°)
OKLaboklab(40.61% 0.0836 -0.0965)
OKLCHoklch(40.61% 0.128 310.9)
XYZxyz(9.3508, 5.9771, 19.3962)
Luminance0.0598 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F307B #4C7B30
analogous
#39307B #5F307B #7B3071
triadic
#5F307B #7B5F30 #307B5F
tetradic
#5F307B #7B3930 #4C7B30 #30717B
square
#5F307B #7B3930 #4C7B30 #30717B
split-complementary
#5F307B #717B30 #307B39
monochromatic
#1B0E23 #3D1F4F #5F307B #8141A7 #9F63C2

Accessibility & contrast

On white

9.57
#5F307B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#5F307B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F307B
9.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F307B#FFFFFF#000000##FFFFFF
##5F307B1.009.572.209.57
#FFFFFF9.571.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#16437D
Deuteranopia (green-blind)
#294679
Tritanopia (blue-blind)
#5C3E50
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5f307b;
/* rgb */ color: rgb(95, 48, 123);
/* oklch */ color: oklch(40.6% 0.128 310.9);
Tailwind
colors: {
  custom: {
    50: '#8f6ba1',
    500: '#5f307b',
    950: '#000000',
  },
}
SCSS
$custom: #5f307b;
$custom-light: #8f6ba1;
$custom-dark: #000000;
JSON
{
  "hex": "#5f307b",
  "rgb": {
    "r": 95,
    "g": 48,
    "b": 123
  },
  "hsl": {
    "h": 277.6,
    "s": 43.86,
    "l": 33.529
  },
  "oklch": {
    "l": 0.40605,
    "c": 0.12764,
    "h": 310.9
  },
  "luminance": 0.05977
}

Semantic roles & 50–950 ramp

primary
#5F307B
secondary
#7AA95D
accent
#D45484
background
#F8F6FA
surface
#F0EBF3
border
#CBC6CD
text
#0D070F
muted
#7D7A7F

Preview Lab

Preview with #5F307B

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

Preview Lab → · Contrast checker → · Palette generator →

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