#5F247B#5F247B

#5F247B is a dark, vivid purple. Relative luminance 0.051; OKLCH L 39.0% C 0.146 H 312.8°. Best body text is #FFFFFF at 10.37:1 contrast (WCAG AA passes).

Color values

HEX#5F247B
RGBrgb(95, 36, 123)
HSLhsl(281, 55%, 31%)
HSVhsv(281, 71%, 48%)
CMYKcmyk(22.8%, 70.7%, 0%, 51.8%)
CIE-LABlab(27.09, 41.54, -37.97)
CIE-LCHlch(27.09, 56.27, 317.57°)
OKLaboklab(38.97% 0.099 -0.1071)
OKLCHoklch(38.97% 0.146 312.8)
XYZxyz(8.9247, 5.1250, 19.2541)
Luminance0.0512 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F247B #407B24
analogous
#33247B #5F247B #7B246B
triadic
#5F247B #7B5F24 #247B5F
tetradic
#5F247B #7B3324 #407B24 #246B7B
square
#5F247B #7B3324 #407B24 #246B7B
split-complementary
#5F247B #6B7B24 #247B33
monochromatic
#16081C #3A164C #5F247B #8432AA #A34ECB

Accessibility & contrast

On white

10.37
#5F247B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#5F247B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F247B
10.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F247B#FFFFFF#000000##FFFFFF
##5F247B1.0010.372.0310.37
#FFFFFF10.371.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D7E
Deuteranopia (green-blind)
#1D4179
Tritanopia (blue-blind)
#5C364C
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5f247b;
/* rgb */ color: rgb(95, 36, 123);
/* oklch */ color: oklch(39.0% 0.146 312.8);
Tailwind
colors: {
  custom: {
    50: '#9064a2',
    500: '#5f247b',
    950: '#000000',
  },
}
SCSS
$custom: #5f247b;
$custom-light: #9064a2;
$custom-dark: #000000;
JSON
{
  "hex": "#5f247b",
  "rgb": {
    "r": 95,
    "g": 36,
    "b": 123
  },
  "hsl": {
    "h": 280.69,
    "s": 54.717,
    "l": 31.176
  },
  "oklch": {
    "l": 0.38966,
    "c": 0.14585,
    "h": 312.8
  },
  "luminance": 0.05125
}

Semantic roles & 50–950 ramp

primary
#5F247B
secondary
#6CAD4D
accent
#DE4A79
background
#F9F6FA
surface
#F1EBF3
border
#CBC6CD
text
#0D060F
muted
#7E7A7F

Preview Lab

Preview with #5F247B

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

Preview Lab → · Contrast checker → · Palette generator →

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