#5F246F#5F246F

#5F246F is a dark, vivid purple. Relative luminance 0.048; OKLCH L 38.1% C 0.133 H 318.4°. Best body text is #FFFFFF at 10.67:1 contrast (WCAG AA passes).

Color values

HEX#5F246F
RGBrgb(95, 36, 111)
HSLhsl(287, 51%, 29%)
HSVhsv(287, 68%, 44%)
CMYKcmyk(14.4%, 67.6%, 0%, 56.5%)
CIE-LABlab(26.28, 38.85, -31.61)
CIE-LCHlch(26.28, 50.09, 320.87°)
OKLaboklab(38.13% 0.0997 -0.0885)
OKLCHoklch(38.13% 0.133 318.4)
XYZxyz(8.2190, 4.8427, 15.5376)
Luminance0.0484 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F246F #346F24
analogous
#3A246F #5F246F #6F245A
triadic
#5F246F #6F5F24 #246F5F
tetradic
#5F246F #6F3A24 #346F24 #245A6F
square
#5F246F #6F3A24 #346F24 #245A6F
split-complementary
#5F246F #5A6F24 #246F3A
monochromatic
#140717 #371541 #5F246F #87339D #AA49C4

Accessibility & contrast

On white

10.67
#5F246F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#5F246F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F246F
10.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F246F#FFFFFF#000000##FFFFFF
##5F246F1.0010.671.9710.67
#FFFFFF10.671.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B3A71
Deuteranopia (green-blind)
#28406D
Tritanopia (blue-blind)
#5F3146
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5f246f;
/* rgb */ color: rgb(95, 36, 111);
/* oklch */ color: oklch(38.1% 0.133 318.4);
Tailwind
colors: {
  custom: {
    50: '#8f6399',
    500: '#5f246f',
    950: '#000000',
  },
}
SCSS
$custom: #5f246f;
$custom-light: #8f6399;
$custom-dark: #000000;
JSON
{
  "hex": "#5f246f",
  "rgb": {
    "r": 95,
    "g": 36,
    "b": 111
  },
  "hsl": {
    "h": 287.2,
    "s": 51.02,
    "l": 28.824
  },
  "oklch": {
    "l": 0.38128,
    "c": 0.13325,
    "h": 318.4
  },
  "luminance": 0.04842
}

Semantic roles & 50–950 ramp

primary
#5F246F
secondary
#5FA24D
accent
#DA4D6B
background
#F9F6F9
surface
#F1EBF2
border
#CBC6CC
text
#0D050E
muted
#7E7A7E

Preview Lab

Preview with #5F246F

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

Preview Lab → · Contrast checker → · Palette generator →

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