#5F2883#5F2883

#5F2883 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.1% C 0.149 H 308.9°. Best body text is #FFFFFF at 9.92:1 contrast (WCAG AA passes).

Color values

HEX#5F2883
RGBrgb(95, 40, 131)
HSLhsl(276, 53%, 34%)
HSVhsv(276, 69%, 51%)
CMYKcmyk(27.5%, 69.5%, 0%, 48.6%)
CIE-LABlab(28.35, 41.47, -40.97)
CIE-LCHlch(28.35, 58.29, 315.35°)
OKLaboklab(40.05% 0.0935 -0.1159)
OKLCHoklch(40.05% 0.149 308.9)
XYZxyz(9.5740, 5.5893, 22.0428)
Luminance0.0559 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2883 #4C8328
analogous
#322883 #5F2883 #832879
triadic
#5F2883 #835F28 #28835F
tetradic
#5F2883 #833228 #4C8328 #287983
square
#5F2883 #833228 #4C8328 #287983
split-complementary
#5F2883 #798328 #288332
monochromatic
#1B0B25 #3D1A54 #5F2883 #8136B2 #9F59CC

Accessibility & contrast

On white

9.92
#5F2883 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#5F2883 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2883
9.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2883#FFFFFF#000000##FFFFFF
##5F28831.009.922.129.92
#FFFFFF9.921.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.921.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f2883;
/* rgb */ color: rgb(95, 40, 131);
/* oklch */ color: oklch(40.1% 0.149 308.9);
Tailwind
colors: {
  custom: {
    50: '#9066a8',
    500: '#5f2883',
    950: '#000000',
  },
}
SCSS
$custom: #5f2883;
$custom-light: #9066a8;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2883",
  "rgb": {
    "r": 95,
    "g": 40,
    "b": 131
  },
  "hsl": {
    "h": 276.264,
    "s": 53.216,
    "l": 33.529
  },
  "oklch": {
    "l": 0.40052,
    "c": 0.14892,
    "h": 308.9
  },
  "luminance": 0.05589
}

Semantic roles & 50–950 ramp

primary
#5F2883
secondary
#7AB155
accent
#DD4B85
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5F2883

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

Preview Lab → · Contrast checker → · Palette generator →

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