#5F2989#5F2989

#5F2989 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.6% C 0.154 H 306.5°. Best body text is #FFFFFF at 9.70:1 contrast (WCAG AA passes).

Color values

HEX#5F2989
RGBrgb(95, 41, 137)
HSLhsl(274, 54%, 35%)
HSVhsv(274, 70%, 54%)
CMYKcmyk(30.7%, 70.1%, 0%, 46.3%)
CIE-LABlab(28.97, 42.43, -43.72)
CIE-LCHlch(28.97, 60.92, 314.14°)
OKLaboklab(40.63% 0.0917 -0.124)
OKLCHoklch(40.63% 0.154 306.5)
XYZxyz(10.0266, 5.8250, 24.2582)
Luminance0.0583 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2989 #538929
analogous
#2F2989 #5F2989 #892983
triadic
#5F2989 #895F29 #29895F
tetradic
#5F2989 #892F29 #538929 #298389
square
#5F2989 #892F29 #538929 #298389
split-complementary
#5F2989 #838929 #29892F
monochromatic
#1E0D2B #3E1B5A #5F2989 #8037B8 #9D5ECF

Accessibility & contrast

On white

9.70
#5F2989 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#5F2989 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2989
9.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2989#FFFFFF#000000##FFFFFF
##5F29891.009.702.179.70
#FFFFFF9.701.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438C
Deuteranopia (green-blind)
#0D4587
Tritanopia (blue-blind)
#583E55
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5f2989;
/* rgb */ color: rgb(95, 41, 137);
/* oklch */ color: oklch(40.6% 0.154 306.5);
Tailwind
colors: {
  custom: {
    50: '#9067ac',
    500: '#5f2989',
    950: '#000000',
  },
}
SCSS
$custom: #5f2989;
$custom-light: #9067ac;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2989",
  "rgb": {
    "r": 95,
    "g": 41,
    "b": 137
  },
  "hsl": {
    "h": 273.75,
    "s": 53.933,
    "l": 34.902
  },
  "oklch": {
    "l": 0.40631,
    "c": 0.15418,
    "h": 306.5
  },
  "luminance": 0.05825
}

Semantic roles & 50–950 ramp

primary
#5F2989
secondary
#81B45A
accent
#DD4A8B
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5F2989

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

Preview Lab → · Contrast checker → · Palette generator →

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