#5F2B83#5F2B83

#5F2B83 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.4% C 0.145 H 308.4°. Best body text is #FFFFFF at 9.72:1 contrast (WCAG AA passes).

Color values

HEX#5F2B83
RGBrgb(95, 43, 131)
HSLhsl(275, 51%, 34%)
HSVhsv(275, 67%, 51%)
CMYKcmyk(27.5%, 67.2%, 0%, 48.6%)
CIE-LABlab(28.90, 39.95, -40.08)
CIE-LCHlch(28.90, 56.59, 314.91°)
OKLaboklab(40.45% 0.0899 -0.1133)
OKLCHoklch(40.45% 0.145 308.4)
XYZxyz(9.6791, 5.7995, 22.0778)
Luminance0.0580 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2B83 #4F832B
analogous
#332B83 #5F2B83 #832B7B
triadic
#5F2B83 #835F2B #2B835F
tetradic
#5F2B83 #83332B #4F832B #2B7B83
square
#5F2B83 #83332B #4F832B #2B7B83
split-complementary
#5F2B83 #7B832B #2B8333
monochromatic
#1C0D27 #3E1C55 #5F2B83 #803AB1 #9E5ECA

Accessibility & contrast

On white

9.72
#5F2B83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#5F2B83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2B83
9.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2B83#FFFFFF#000000##FFFFFF
##5F2B831.009.722.169.72
#FFFFFF9.721.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004286
Deuteranopia (green-blind)
#1B4581
Tritanopia (blue-blind)
#5A3D53
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5f2b83;
/* rgb */ color: rgb(95, 43, 131);
/* oklch */ color: oklch(40.4% 0.145 308.4);
Tailwind
colors: {
  custom: {
    50: '#9068a8',
    500: '#5f2b83',
    950: '#000000',
  },
}
SCSS
$custom: #5f2b83;
$custom-light: #9068a8;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2b83",
  "rgb": {
    "r": 95,
    "g": 43,
    "b": 131
  },
  "hsl": {
    "h": 275.455,
    "s": 50.575,
    "l": 34.118
  },
  "oklch": {
    "l": 0.40447,
    "c": 0.14464,
    "h": 308.4
  },
  "luminance": 0.05799
}

Semantic roles & 50–950 ramp

primary
#5F2B83
secondary
#7DB05A
accent
#DA4E87
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D060F
muted
#7E7A7F

Preview Lab

Preview with #5F2B83

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

Preview Lab → · Contrast checker → · Palette generator →

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