#5F2289#5F2289

#5F2289 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.8% C 0.163 H 307.5°. Best body text is #FFFFFF at 10.11:1 contrast (WCAG AA passes).

Color values

HEX#5F2289
RGBrgb(95, 34, 137)
HSLhsl(276, 60%, 34%)
HSVhsv(276, 75%, 54%)
CMYKcmyk(30.7%, 75.2%, 0%, 46.3%)
CIE-LABlab(27.80, 45.71, -45.61)
CIE-LCHlch(27.80, 64.57, 315.07°)
OKLaboklab(39.8% 0.0993 -0.1295)
OKLCHoklch(39.8% 0.163 307.5)
XYZxyz(9.8057, 5.3832, 24.1846)
Luminance0.0538 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2289 #4C8922
analogous
#2B2289 #5F2289 #89227F
triadic
#5F2289 #895F22 #22895F
tetradic
#5F2289 #892B22 #4C8922 #227F89
square
#5F2289 #892B22 #4C8922 #227F89
split-complementary
#5F2289 #7F8922 #22892B
monochromatic
#1B0A27 #3D1658 #5F2289 #812EBA #9F51D4

Accessibility & contrast

On white

10.11
#5F2289 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#5F2289 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2289
10.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2289#FFFFFF#000000##FFFFFF
##5F22891.0010.112.0810.11
#FFFFFF10.111.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408C
Deuteranopia (green-blind)
#004287
Tritanopia (blue-blind)
#583A54
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5f2289;
/* rgb */ color: rgb(95, 34, 137);
/* oklch */ color: oklch(39.8% 0.163 307.5);
Tailwind
colors: {
  custom: {
    50: '#9163ac',
    500: '#5f2289',
    950: '#000000',
  },
}
SCSS
$custom: #5f2289;
$custom-light: #9163ac;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2289",
  "rgb": {
    "r": 95,
    "g": 34,
    "b": 137
  },
  "hsl": {
    "h": 275.534,
    "s": 60.234,
    "l": 33.529
  },
  "oklch": {
    "l": 0.39801,
    "c": 0.16315,
    "h": 307.5
  },
  "luminance": 0.05383
}

Semantic roles & 50–950 ramp

primary
#5F2289
secondary
#7AB84F
accent
#E34485
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5F2289

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

Preview Lab → · Contrast checker → · Palette generator →

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