#5F248F#5F248F

#5F248F is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.5% C 0.167 H 305.1°. Best body text is #FFFFFF at 9.83:1 contrast (WCAG AA passes).

Color values

HEX#5F248F
RGBrgb(95, 36, 143)
HSLhsl(273, 60%, 35%)
HSVhsv(273, 75%, 56%)
CMYKcmyk(33.6%, 74.8%, 0%, 43.9%)
CIE-LABlab(28.58, 46.26, -48.05)
CIE-LCHlch(28.58, 66.70, 313.91°)
OKLaboklab(40.5% 0.0961 -0.1367)
OKLCHoklch(40.5% 0.167 305.1)
XYZxyz(10.3070, 5.6779, 26.5342)
Luminance0.0568 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F248F #548F24
analogous
#29248F #5F248F #8F248A
triadic
#5F248F #8F5F24 #248F5F
tetradic
#5F248F #8F2924 #548F24 #248A8F
square
#5F248F #8F2924 #548F24 #248A8F
split-complementary
#5F248F #8A8F24 #248F29
monochromatic
#1E0B2D #3F185E #5F248F #7F30C0 #9D58D5

Accessibility & contrast

On white

9.83
#5F248F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#5F248F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F248F
9.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F248F#FFFFFF#000000##FFFFFF
##5F248F1.009.832.149.83
#FFFFFF9.831.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004292
Deuteranopia (green-blind)
#00438D
Tritanopia (blue-blind)
#563E57
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5f248f;
/* rgb */ color: rgb(95, 36, 143);
/* oklch */ color: oklch(40.5% 0.167 305.1);
Tailwind
colors: {
  custom: {
    50: '#9165b1',
    500: '#5f248f',
    950: '#000000',
  },
}
SCSS
$custom: #5f248f;
$custom-light: #9165b1;
$custom-dark: #000000;
JSON
{
  "hex": "#5f248f",
  "rgb": {
    "r": 95,
    "g": 36,
    "b": 143
  },
  "hsl": {
    "h": 273.084,
    "s": 59.777,
    "l": 35.098
  },
  "oklch": {
    "l": 0.40504,
    "c": 0.16708,
    "h": 305.1
  },
  "luminance": 0.05678
}

Semantic roles & 50–950 ramp

primary
#5F248F
secondary
#82B955
accent
#E3458C
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5F248F

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

Preview Lab → · Contrast checker → · Palette generator →

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