#5F2287#5F2287

#5F2287 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.6% C 0.161 H 308.2°. Best body text is #FFFFFF at 10.17:1 contrast (WCAG AA passes).

Color values

HEX#5F2287
RGBrgb(95, 34, 135)
HSLhsl(276, 60%, 33%)
HSVhsv(276, 75%, 53%)
CMYKcmyk(29.6%, 74.8%, 0%, 47.1%)
CIE-LABlab(27.65, 45.24, -44.61)
CIE-LCHlch(27.65, 63.53, 315.40°)
OKLaboklab(39.64% 0.0996 -0.1266)
OKLCHoklch(39.64% 0.161 308.2)
XYZxyz(9.6636, 5.3264, 23.4360)
Luminance0.0533 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2287 #4A8722
analogous
#2D2287 #5F2287 #87227C
triadic
#5F2287 #875F22 #22875F
tetradic
#5F2287 #872D22 #4A8722 #227C87
square
#5F2287 #872D22 #4A8722 #227C87
split-complementary
#5F2287 #7C8722 #22872D
monochromatic
#1A0925 #3D1656 #5F2287 #812EB8 #9F50D3

Accessibility & contrast

On white

10.17
#5F2287 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#5F2287 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2287
10.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2287#FFFFFF#000000##FFFFFF
##5F22871.0010.172.0710.17
#FFFFFF10.171.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8A
Deuteranopia (green-blind)
#024285
Tritanopia (blue-blind)
#593A52
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5f2287;
/* rgb */ color: rgb(95, 34, 135);
/* oklch */ color: oklch(39.6% 0.161 308.2);
Tailwind
colors: {
  custom: {
    50: '#9163ab',
    500: '#5f2287',
    950: '#000000',
  },
}
SCSS
$custom: #5f2287;
$custom-light: #9163ab;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2287",
  "rgb": {
    "r": 95,
    "g": 34,
    "b": 135
  },
  "hsl": {
    "h": 276.238,
    "s": 59.763,
    "l": 33.137
  },
  "oklch": {
    "l": 0.39642,
    "c": 0.16106,
    "h": 308.2
  },
  "luminance": 0.05326
}

Semantic roles & 50–950 ramp

primary
#5F2287
secondary
#78B74E
accent
#E34583
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5F2287

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

Preview Lab → · Contrast checker → · Palette generator →

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