#5F248E#5F248E

#5F248E is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.4% C 0.166 H 305.4°. Best body text is #FFFFFF at 9.86:1 contrast (WCAG AA passes).

Color values

HEX#5F248E
RGBrgb(95, 36, 142)
HSLhsl(273, 60%, 35%)
HSVhsv(273, 75%, 56%)
CMYKcmyk(33.1%, 74.6%, 0%, 44.3%)
CIE-LABlab(28.51, 46.02, -47.56)
CIE-LCHlch(28.51, 66.18, 314.05°)
OKLaboklab(40.42% 0.0963 -0.1352)
OKLCHoklch(40.42% 0.166 305.4)
XYZxyz(10.2316, 5.6477, 26.1370)
Luminance0.0565 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F248E #538E24
analogous
#2A248E #5F248E #8E2488
triadic
#5F248E #8E5F24 #248E5F
tetradic
#5F248E #8E2A24 #538E24 #24888E
square
#5F248E #8E2A24 #538E24 #24888E
split-complementary
#5F248E #888E24 #248E2A
monochromatic
#1E0B2C #3E185D #5F248E #8030BF #9D58D5

Accessibility & contrast

On white

9.86
#5F248E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#5F248E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F248E
9.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F248E#FFFFFF#000000##FFFFFF
##5F248E1.009.862.139.86
#FFFFFF9.861.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004291
Deuteranopia (green-blind)
#00438C
Tritanopia (blue-blind)
#563D57
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5f248e;
/* rgb */ color: rgb(95, 36, 142);
/* oklch */ color: oklch(40.4% 0.166 305.4);
Tailwind
colors: {
  custom: {
    50: '#9165b0',
    500: '#5f248e',
    950: '#000000',
  },
}
SCSS
$custom: #5f248e;
$custom-light: #9165b0;
$custom-dark: #000000;
JSON
{
  "hex": "#5f248e",
  "rgb": {
    "r": 95,
    "g": 36,
    "b": 142
  },
  "hsl": {
    "h": 273.396,
    "s": 59.551,
    "l": 34.902
  },
  "oklch": {
    "l": 0.40424,
    "c": 0.16602,
    "h": 305.4
  },
  "luminance": 0.05648
}

Semantic roles & 50–950 ramp

primary
#5F248E
secondary
#81B955
accent
#E3458B
background
#F9F6FA
surface
#F2EBF5
border
#CCC6CF
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5F248E

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

Preview Lab → · Contrast checker → · Palette generator →

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