#5F247D#5F247D

#5F247D is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.1% C 0.148 H 311.9°. Best body text is #FFFFFF at 10.32:1 contrast (WCAG AA passes).

Color values

HEX#5F247D
RGBrgb(95, 36, 125)
HSLhsl(280, 55%, 32%)
HSVhsv(280, 71%, 49%)
CMYKcmyk(24%, 71.2%, 0%, 51%)
CIE-LABlab(27.23, 41.99, -39.00)
CIE-LCHlch(27.23, 57.31, 317.11°)
OKLaboklab(39.11% 0.0988 -0.1101)
OKLCHoklch(39.11% 0.148 311.9)
XYZxyz(9.0512, 5.1756, 19.9202)
Luminance0.0517 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F247D #427D24
analogous
#32247D #5F247D #7D246F
triadic
#5F247D #7D5F24 #247D5F
tetradic
#5F247D #7D3224 #427D24 #246F7D
square
#5F247D #7D3224 #427D24 #246F7D
split-complementary
#5F247D #6F7D24 #247D32
monochromatic
#17091E #3B164D #5F247D #8332AD #A24FCC

Accessibility & contrast

On white

10.32
#5F247D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#5F247D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F247D
10.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F247D#FFFFFF#000000##FFFFFF
##5F247D1.0010.322.0410.32
#FFFFFF10.321.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D80
Deuteranopia (green-blind)
#1A417B
Tritanopia (blue-blind)
#5B374D
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5f247d;
/* rgb */ color: rgb(95, 36, 125);
/* oklch */ color: oklch(39.1% 0.148 311.9);
Tailwind
colors: {
  custom: {
    50: '#9064a3',
    500: '#5f247d',
    950: '#000000',
  },
}
SCSS
$custom: #5f247d;
$custom-light: #9064a3;
$custom-dark: #000000;
JSON
{
  "hex": "#5f247d",
  "rgb": {
    "r": 95,
    "g": 36,
    "b": 125
  },
  "hsl": {
    "h": 279.775,
    "s": 55.28,
    "l": 31.569
  },
  "oklch": {
    "l": 0.39112,
    "c": 0.14796,
    "h": 311.9
  },
  "luminance": 0.05175
}

Semantic roles & 50–950 ramp

primary
#5F247D
secondary
#6EAF4D
accent
#DF497C
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D060F
muted
#7E7A7F

Preview Lab

Preview with #5F247D

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

Preview Lab → · Contrast checker → · Palette generator →

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