#5F2283#5F2283

#5F2283 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.3% C 0.157 H 309.7°. Best body text is #FFFFFF at 10.28:1 contrast (WCAG AA passes).

Color values

HEX#5F2283
RGBrgb(95, 34, 131)
HSLhsl(278, 59%, 32%)
HSVhsv(278, 74%, 51%)
CMYKcmyk(27.5%, 74%, 0%, 48.6%)
CIE-LABlab(27.34, 44.31, -42.60)
CIE-LCHlch(27.34, 61.46, 316.13°)
OKLaboklab(39.33% 0.1003 -0.1206)
OKLCHoklch(39.33% 0.157 309.7)
XYZxyz(9.3873, 5.2158, 21.9806)
Luminance0.0522 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2283 #468322
analogous
#2F2283 #5F2283 #832277
triadic
#5F2283 #835F22 #22835F
tetradic
#5F2283 #832F22 #468322 #227783
square
#5F2283 #832F22 #468322 #227783
split-complementary
#5F2283 #778322 #22832F
monochromatic
#190922 #3C1552 #5F2283 #822FB4 #A14ED1

Accessibility & contrast

On white

10.28
#5F2283 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#5F2283 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2283
10.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2283#FFFFFF#000000##FFFFFF
##5F22831.0010.282.0410.28
#FFFFFF10.281.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E86
Deuteranopia (green-blind)
#0D4181
Tritanopia (blue-blind)
#5A3850
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5f2283;
/* rgb */ color: rgb(95, 34, 131);
/* oklch */ color: oklch(39.3% 0.157 309.7);
Tailwind
colors: {
  custom: {
    50: '#9063a8',
    500: '#5f2283',
    950: '#000000',
  },
}
SCSS
$custom: #5f2283;
$custom-light: #9063a8;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2283",
  "rgb": {
    "r": 95,
    "g": 34,
    "b": 131
  },
  "hsl": {
    "h": 277.732,
    "s": 58.788,
    "l": 32.353
  },
  "oklch": {
    "l": 0.39331,
    "c": 0.15689,
    "h": 309.7
  },
  "luminance": 0.05216
}

Semantic roles & 50–950 ramp

primary
#5F2283
secondary
#73B44C
accent
#E24680
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5F2283

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

Preview Lab → · Contrast checker → · Palette generator →

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