#5F308E#5F308E

#5F308E is a dark, vivid violet. Relative luminance 0.065; OKLCH L 41.9% C 0.150 H 303.5°. Best body text is #FFFFFF at 9.13:1 contrast (WCAG AA passes).

Color values

HEX#5F308E
RGBrgb(95, 48, 142)
HSLhsl(270, 49%, 37%)
HSVhsv(270, 66%, 56%)
CMYKcmyk(33.1%, 66.2%, 0%, 44.3%)
CIE-LABlab(30.64, 40.07, -44.11)
CIE-LCHlch(30.64, 59.59, 312.26°)
OKLaboklab(41.95% 0.0829 -0.1252)
OKLCHoklch(41.95% 0.15 303.5)
XYZxyz(10.6576, 6.4998, 26.2791)
Luminance0.0650 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F308E #5F8E30
analogous
#30308E #5F308E #8E308E
triadic
#5F308E #8E5F30 #308E5F
tetradic
#5F308E #8E3030 #5F8E30 #308E8E
square
#5F308E #8E3030 #5F8E30 #308E8E
split-complementary
#5F308E #8E8E30 #308E30
monochromatic
#221133 #402160 #5F308E #7E3FBC #9C6BCD

Accessibility & contrast

On white

9.13
#5F308E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#5F308E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F308E
9.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F308E#FFFFFF#000000##FFFFFF
##5F308E1.009.132.309.13
#FFFFFF9.131.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004791
Deuteranopia (green-blind)
#11488C
Tritanopia (blue-blind)
#56445A
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5f308e;
/* rgb */ color: rgb(95, 48, 142);
/* oklch */ color: oklch(41.9% 0.150 303.5);
Tailwind
colors: {
  custom: {
    50: '#906bb0',
    500: '#5f308e',
    950: '#000000',
  },
}
SCSS
$custom: #5f308e;
$custom-light: #906bb0;
$custom-dark: #000000;
JSON
{
  "hex": "#5f308e",
  "rgb": {
    "r": 95,
    "g": 48,
    "b": 142
  },
  "hsl": {
    "h": 270,
    "s": 49.474,
    "l": 37.255
  },
  "oklch": {
    "l": 0.41949,
    "c": 0.15011,
    "h": 303.5
  },
  "luminance": 0.065
}

Semantic roles & 50–950 ramp

primary
#5F308E
secondary
#8DB465
accent
#D94F94
background
#F9F6FA
surface
#F1EBF5
border
#CBC6CF
text
#0D0710
muted
#7E7A7F

Preview Lab

Preview with #5F308E

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

Preview Lab → · Contrast checker → · Palette generator →

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