#5F2983#5F2983

#5F2983 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.2% C 0.148 H 308.7°. Best body text is #FFFFFF at 9.85:1 contrast (WCAG AA passes).

Color values

HEX#5F2983
RGBrgb(95, 41, 131)
HSLhsl(276, 52%, 34%)
HSVhsv(276, 69%, 51%)
CMYKcmyk(27.5%, 68.7%, 0%, 48.6%)
CIE-LABlab(28.53, 40.97, -40.68)
CIE-LCHlch(28.53, 57.73, 315.21°)
OKLaboklab(40.18% 0.0923 -0.115)
OKLCHoklch(40.18% 0.148 308.7)
XYZxyz(9.6082, 5.6576, 22.0542)
Luminance0.0566 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2983 #4D8329
analogous
#322983 #5F2983 #83297A
triadic
#5F2983 #835F29 #29835F
tetradic
#5F2983 #833229 #4D8329 #297A83
square
#5F2983 #833229 #4D8329 #297A83
split-complementary
#5F2983 #7A8329 #298332
monochromatic
#1B0C26 #3D1A54 #5F2983 #8138B2 #9E5BCC

Accessibility & contrast

On white

9.85
#5F2983 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#5F2983 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2983
9.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2983#FFFFFF#000000##FFFFFF
##5F29831.009.852.139.85
#FFFFFF9.851.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004186
Deuteranopia (green-blind)
#184481
Tritanopia (blue-blind)
#5A3C52
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5f2983;
/* rgb */ color: rgb(95, 41, 131);
/* oklch */ color: oklch(40.2% 0.148 308.7);
Tailwind
colors: {
  custom: {
    50: '#9067a8',
    500: '#5f2983',
    950: '#000000',
  },
}
SCSS
$custom: #5f2983;
$custom-light: #9067a8;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2983",
  "rgb": {
    "r": 95,
    "g": 41,
    "b": 131
  },
  "hsl": {
    "h": 276,
    "s": 52.326,
    "l": 33.725
  },
  "oklch": {
    "l": 0.40181,
    "c": 0.14752,
    "h": 308.7
  },
  "luminance": 0.05657
}

Semantic roles & 50–950 ramp

primary
#5F2983
secondary
#7BB157
accent
#DC4C86
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D060F
muted
#7E7A7F

Preview Lab

Preview with #5F2983

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

Preview Lab → · Contrast checker → · Palette generator →

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