#5F307C#5F307C

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

Color values

HEX#5F307C
RGBrgb(95, 48, 124)
HSLhsl(277, 44%, 34%)
HSVhsv(277, 61%, 49%)
CMYKcmyk(23.4%, 61.3%, 0%, 51.4%)
CIE-LABlab(29.42, 35.57, -34.86)
CIE-LCHlch(29.42, 49.81, 315.57°)
OKLaboklab(40.67% 0.0836 -0.098)
OKLCHoklch(40.67% 0.129 310.4)
XYZxyz(9.4137, 6.0022, 19.7275)
Luminance0.0600 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F307C #4D7C30
analogous
#39307C #5F307C #7C3073
triadic
#5F307C #7C5F30 #307C5F
tetradic
#5F307C #7C3930 #4D7C30 #30737C
square
#5F307C #7C3930 #4D7C30 #30737C
split-complementary
#5F307C #737C30 #307C39
monochromatic
#1B0E24 #3D1F50 #5F307C #8141A8 #9E64C3

Accessibility & contrast

On white

9.54
#5F307C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F307C
9.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F307C#FFFFFF#000000##FFFFFF
##5F307C1.009.542.209.54
#FFFFFF9.541.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#15437E
Deuteranopia (green-blind)
#28467A
Tritanopia (blue-blind)
#5B3E51
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5f307c;
/* rgb */ color: rgb(95, 48, 124);
/* oklch */ color: oklch(40.7% 0.129 310.4);
Tailwind
colors: {
  custom: {
    50: '#8f6ba2',
    500: '#5f307c',
    950: '#000000',
  },
}
SCSS
$custom: #5f307c;
$custom-light: #8f6ba2;
$custom-dark: #000000;
JSON
{
  "hex": "#5f307c",
  "rgb": {
    "r": 95,
    "g": 48,
    "b": 124
  },
  "hsl": {
    "h": 277.105,
    "s": 44.186,
    "l": 33.725
  },
  "oklch": {
    "l": 0.40672,
    "c": 0.12883,
    "h": 310.4
  },
  "luminance": 0.06002
}

Semantic roles & 50–950 ramp

primary
#5F307C
secondary
#7BAA5E
accent
#D45485
background
#F8F6FA
surface
#F0EBF3
border
#CBC6CD
text
#0D070F
muted
#7D7A7F

Preview Lab

Preview with #5F307C

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

Preview Lab → · Contrast checker → · Palette generator →

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