#5F2285#5F2285

#5F2285 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.5% C 0.159 H 309.0°. Best body text is #FFFFFF at 10.22:1 contrast (WCAG AA passes).

Color values

HEX#5F2285
RGBrgb(95, 34, 133)
HSLhsl(277, 59%, 33%)
HSVhsv(277, 74%, 52%)
CMYKcmyk(28.6%, 74.4%, 0%, 47.8%)
CIE-LABlab(27.49, 44.77, -43.61)
CIE-LCHlch(27.49, 62.50, 315.75°)
OKLaboklab(39.49% 0.1 -0.1236)
OKLCHoklch(39.49% 0.159 309)
XYZxyz(9.5241, 5.2706, 22.7013)
Luminance0.0527 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2285 #488522
analogous
#2E2285 #5F2285 #852279
triadic
#5F2285 #855F22 #22855F
tetradic
#5F2285 #852E22 #488522 #227985
square
#5F2285 #852E22 #488522 #227985
split-complementary
#5F2285 #798522 #22852E
monochromatic
#190924 #3C1654 #5F2285 #822EB6 #A04FD2

Accessibility & contrast

On white

10.22
#5F2285 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#5F2285 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2285
10.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2285#FFFFFF#000000##FFFFFF
##5F22851.0010.222.0510.22
#FFFFFF10.221.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F88
Deuteranopia (green-blind)
#084283
Tritanopia (blue-blind)
#593951
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5f2285;
/* rgb */ color: rgb(95, 34, 133);
/* oklch */ color: oklch(39.5% 0.159 309.0);
Tailwind
colors: {
  custom: {
    50: '#9063a9',
    500: '#5f2285',
    950: '#000000',
  },
}
SCSS
$custom: #5f2285;
$custom-light: #9063a9;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2285",
  "rgb": {
    "r": 95,
    "g": 34,
    "b": 133
  },
  "hsl": {
    "h": 276.97,
    "s": 59.281,
    "l": 32.745
  },
  "oklch": {
    "l": 0.39486,
    "c": 0.15898,
    "h": 309
  },
  "luminance": 0.0527
}

Semantic roles & 50–950 ramp

primary
#5F2285
secondary
#75B64D
accent
#E24582
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5F2285

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

Preview Lab → · Contrast checker → · Palette generator →

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