#5F247E#5F247E

#5F247E is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.2% C 0.149 H 311.5°. Best body text is #FFFFFF at 10.29:1 contrast (WCAG AA passes).

Color values

HEX#5F247E
RGBrgb(95, 36, 126)
HSLhsl(279, 56%, 32%)
HSVhsv(279, 71%, 49%)
CMYKcmyk(24.6%, 71.4%, 0%, 50.6%)
CIE-LABlab(27.30, 42.23, -39.52)
CIE-LCHlch(27.30, 57.84, 316.90°)
OKLaboklab(39.19% 0.0987 -0.1116)
OKLCHoklch(39.19% 0.149 311.5)
XYZxyz(9.1154, 5.2012, 20.2584)
Luminance0.0520 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F247E #437E24
analogous
#32247E #5F247E #7E2470
triadic
#5F247E #7E5F24 #247E5F
tetradic
#5F247E #7E3224 #437E24 #24707E
square
#5F247E #7E3224 #437E24 #24707E
split-complementary
#5F247E #707E24 #247E32
monochromatic
#17091F #3B164E #5F247E #8332AE #A250CD

Accessibility & contrast

On white

10.29
#5F247E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F247E
10.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F247E#FFFFFF#000000##FFFFFF
##5F247E1.0010.292.0410.29
#FFFFFF10.291.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E81
Deuteranopia (green-blind)
#19427C
Tritanopia (blue-blind)
#5B374E
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5f247e;
/* rgb */ color: rgb(95, 36, 126);
/* oklch */ color: oklch(39.2% 0.149 311.5);
Tailwind
colors: {
  custom: {
    50: '#9064a4',
    500: '#5f247e',
    950: '#000000',
  },
}
SCSS
$custom: #5f247e;
$custom-light: #9064a4;
$custom-dark: #000000;
JSON
{
  "hex": "#5f247e",
  "rgb": {
    "r": 95,
    "g": 36,
    "b": 126
  },
  "hsl": {
    "h": 279.333,
    "s": 55.556,
    "l": 31.765
  },
  "oklch": {
    "l": 0.39186,
    "c": 0.14902,
    "h": 311.5
  },
  "luminance": 0.05201
}

Semantic roles & 50–950 ramp

primary
#5F247E
secondary
#70B04E
accent
#DF497D
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D060F
muted
#7E7A7F

Preview Lab

Preview with #5F247E

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

Preview Lab → · Contrast checker → · Palette generator →

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