#5F2F90#5F2F90

#5F2F90 is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.0% C 0.154 H 303.0°. Best body text is #FFFFFF at 9.15:1 contrast (WCAG AA passes).

Color values

HEX#5F2F90
RGBrgb(95, 47, 144)
HSLhsl(270, 51%, 37%)
HSVhsv(270, 67%, 56%)
CMYKcmyk(34%, 67.4%, 0%, 43.5%)
CIE-LABlab(30.59, 41.12, -45.42)
CIE-LCHlch(30.59, 61.27, 312.15°)
OKLaboklab(41.96% 0.0839 -0.129)
OKLCHoklch(41.96% 0.154 303)
XYZxyz(10.7687, 6.4795, 27.0635)
Luminance0.0648 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2F90 #60902F
analogous
#2F2F90 #5F2F90 #902F90
triadic
#5F2F90 #905F2F #2F905F
tetradic
#5F2F90 #902F2F #60902F #2F9090
square
#5F2F90 #902F2F #60902F #2F9090
split-complementary
#5F2F90 #90902F #2F902F
monochromatic
#221134 #412062 #5F2F90 #7D3EBE #9C6BCF

Accessibility & contrast

On white

9.15
#5F2F90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#5F2F90 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2F90
9.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2F90#FFFFFF#000000##FFFFFF
##5F2F901.009.152.309.15
#FFFFFF9.151.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004793
Deuteranopia (green-blind)
#0A488E
Tritanopia (blue-blind)
#55445B
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5f2f90;
/* rgb */ color: rgb(95, 47, 144);
/* oklch */ color: oklch(42.0% 0.154 303.0);
Tailwind
colors: {
  custom: {
    50: '#906bb1',
    500: '#5f2f90',
    950: '#000000',
  },
}
SCSS
$custom: #5f2f90;
$custom-light: #906bb1;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2f90",
  "rgb": {
    "r": 95,
    "g": 47,
    "b": 144
  },
  "hsl": {
    "h": 269.691,
    "s": 50.785,
    "l": 37.451
  },
  "oklch": {
    "l": 0.4196,
    "c": 0.15388,
    "h": 303
  },
  "luminance": 0.0648
}

Semantic roles & 50–950 ramp

primary
#5F2F90
secondary
#8EB665
accent
#DA4E95
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5F2F90

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

Preview Lab → · Contrast checker → · Palette generator →

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