#5F2F95#5F2F95

#5F2F95 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.3% C 0.160 H 301.4°. Best body text is #FFFFFF at 9.02:1 contrast (WCAG AA passes).

Color values

HEX#5F2F95
RGBrgb(95, 47, 149)
HSLhsl(268, 52%, 38%)
HSVhsv(268, 68%, 58%)
CMYKcmyk(36.2%, 68.5%, 0%, 41.6%)
CIE-LABlab(30.96, 42.41, -47.89)
CIE-LCHlch(30.96, 63.96, 311.53°)
OKLaboklab(42.34% 0.0833 -0.1363)
OKLCHoklch(42.34% 0.16 301.4)
XYZxyz(11.1593, 6.6358, 29.1209)
Luminance0.0664 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2F95 #65952F
analogous
#2F3295 #5F2F95 #922F95
triadic
#5F2F95 #955F2F #2F955F
tetradic
#5F2F95 #952F32 #65952F #2F9592
square
#5F2F95 #952F32 #65952F #2F9592
split-complementary
#5F2F95 #95922F #32952F
monochromatic
#241238 #412066 #5F2F95 #7D3FC2 #9C6DD1

Accessibility & contrast

On white

9.02
#5F2F95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#5F2F95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2F95
9.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2F95#FFFFFF#000000##FFFFFF
##5F2F951.009.022.339.02
#FFFFFF9.021.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004898
Deuteranopia (green-blind)
#004893
Tritanopia (blue-blind)
#54465E
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5f2f95;
/* rgb */ color: rgb(95, 47, 149);
/* oklch */ color: oklch(42.3% 0.160 301.4);
Tailwind
colors: {
  custom: {
    50: '#916bb5',
    500: '#5f2f95',
    950: '#000000',
  },
}
SCSS
$custom: #5f2f95;
$custom-light: #916bb5;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2f95",
  "rgb": {
    "r": 95,
    "g": 47,
    "b": 149
  },
  "hsl": {
    "h": 268.235,
    "s": 52.041,
    "l": 38.431
  },
  "oklch": {
    "l": 0.42344,
    "c": 0.15971,
    "h": 301.4
  },
  "luminance": 0.06636
}

Semantic roles & 50–950 ramp

primary
#5F2F95
secondary
#92B867
accent
#DB4C98
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5F2F95

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

Preview Lab → · Contrast checker → · Palette generator →

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