#5F2C95#5F2C95

#5F2C95 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 41.9% C 0.164 H 302.0°. Best body text is #FFFFFF at 9.21:1 contrast (WCAG AA passes).

Color values

HEX#5F2C95
RGBrgb(95, 44, 149)
HSLhsl(269, 54%, 38%)
HSVhsv(269, 70%, 58%)
CMYKcmyk(36.2%, 70.5%, 0%, 41.6%)
CIE-LABlab(30.41, 43.94, -48.78)
CIE-LCHlch(30.41, 65.66, 312.01°)
OKLaboklab(41.95% 0.0866 -0.1389)
OKLCHoklch(41.95% 0.164 302)
XYZxyz(11.0435, 6.4041, 29.0823)
Luminance0.0640 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2C95 #62952C
analogous
#2C2D95 #5F2C95 #932C95
triadic
#5F2C95 #955F2C #2C955F
tetradic
#5F2C95 #952C2D #62952C #2C9593
square
#5F2C95 #952C2D #62952C #2C9593
split-complementary
#5F2C95 #95932C #2D952C
monochromatic
#231037 #411E66 #5F2C95 #7D3AC4 #9C69D3

Accessibility & contrast

On white

9.21
#5F2C95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#5F2C95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2C95
9.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2C95#FFFFFF#000000##FFFFFF
##5F2C951.009.212.289.21
#FFFFFF9.211.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004798
Deuteranopia (green-blind)
#004793
Tritanopia (blue-blind)
#54455D
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5f2c95;
/* rgb */ color: rgb(95, 44, 149);
/* oklch */ color: oklch(41.9% 0.164 302.0);
Tailwind
colors: {
  custom: {
    50: '#9169b5',
    500: '#5f2c95',
    950: '#000000',
  },
}
SCSS
$custom: #5f2c95;
$custom-light: #9169b5;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2c95",
  "rgb": {
    "r": 95,
    "g": 44,
    "b": 149
  },
  "hsl": {
    "h": 269.143,
    "s": 54.404,
    "l": 37.843
  },
  "oklch": {
    "l": 0.41949,
    "c": 0.16369,
    "h": 302
  },
  "luminance": 0.06404
}

Semantic roles & 50–950 ramp

primary
#5F2C95
secondary
#90B964
accent
#DE4A96
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5F2C95

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

Preview Lab → · Contrast checker → · Palette generator →

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