#5F248D#5F248D

#5F248D is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.3% C 0.165 H 305.8°. Best body text is #FFFFFF at 9.89:1 contrast (WCAG AA passes).

Color values

HEX#5F248D
RGBrgb(95, 36, 141)
HSLhsl(274, 59%, 35%)
HSVhsv(274, 74%, 55%)
CMYKcmyk(32.6%, 74.5%, 0%, 44.7%)
CIE-LABlab(28.43, 45.77, -47.07)
CIE-LCHlch(28.43, 65.66, 314.20°)
OKLaboklab(40.34% 0.0965 -0.1338)
OKLCHoklch(40.34% 0.165 305.8)
XYZxyz(10.1568, 5.6178, 25.7434)
Luminance0.0562 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F248D #528D24
analogous
#2A248D #5F248D #8D2487
triadic
#5F248D #8D5F24 #248D5F
tetradic
#5F248D #8D2A24 #528D24 #24878D
square
#5F248D #8D2A24 #528D24 #24878D
split-complementary
#5F248D #878D24 #248D2A
monochromatic
#1D0B2B #3E185C #5F248D #8030BE #9D57D4

Accessibility & contrast

On white

9.89
#5F248D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#5F248D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F248D
9.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F248D#FFFFFF#000000##FFFFFF
##5F248D1.009.892.129.89
#FFFFFF9.891.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004190
Deuteranopia (green-blind)
#00438B
Tritanopia (blue-blind)
#573D56
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5f248d;
/* rgb */ color: rgb(95, 36, 141);
/* oklch */ color: oklch(40.3% 0.165 305.8);
Tailwind
colors: {
  custom: {
    50: '#9165af',
    500: '#5f248d',
    950: '#000000',
  },
}
SCSS
$custom: #5f248d;
$custom-light: #9165af;
$custom-dark: #000000;
JSON
{
  "hex": "#5f248d",
  "rgb": {
    "r": 95,
    "g": 36,
    "b": 141
  },
  "hsl": {
    "h": 273.714,
    "s": 59.322,
    "l": 34.706
  },
  "oklch": {
    "l": 0.40343,
    "c": 0.16496,
    "h": 305.8
  },
  "luminance": 0.05618
}

Semantic roles & 50–950 ramp

primary
#5F248D
secondary
#80B854
accent
#E3458A
background
#F9F6FA
surface
#F2EBF5
border
#CCC6CF
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5F248D

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

Preview Lab → · Contrast checker → · Palette generator →

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