#5F248A#5F248A

#5F248A is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.1% C 0.162 H 306.9°. Best body text is #FFFFFF at 9.97:1 contrast (WCAG AA passes).

Color values

HEX#5F248A
RGBrgb(95, 36, 138)
HSLhsl(275, 59%, 34%)
HSVhsv(275, 74%, 54%)
CMYKcmyk(31.2%, 73.9%, 0%, 45.9%)
CIE-LABlab(28.19, 45.05, -45.59)
CIE-LCHlch(28.19, 64.10, 314.66°)
OKLaboklab(40.1% 0.097 -0.1294)
OKLCHoklch(40.1% 0.162 306.9)
XYZxyz(9.9367, 5.5297, 24.5837)
Luminance0.0553 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F248A #4F8A24
analogous
#2C248A #5F248A #8A2482
triadic
#5F248A #8A5F24 #248A5F
tetradic
#5F248A #8A2C24 #4F8A24 #24828A
square
#5F248A #8A2C24 #4F8A24 #24828A
split-complementary
#5F248A #828A24 #248A2C
monochromatic
#1C0B29 #3E1759 #5F248A #8031BB #9E56D3

Accessibility & contrast

On white

9.97
#5F248A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#5F248A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F248A
9.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F248A#FFFFFF#000000##FFFFFF
##5F248A1.009.972.119.97
#FFFFFF9.971.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418D
Deuteranopia (green-blind)
#004388
Tritanopia (blue-blind)
#583C55
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5f248a;
/* rgb */ color: rgb(95, 36, 138);
/* oklch */ color: oklch(40.1% 0.162 306.9);
Tailwind
colors: {
  custom: {
    50: '#9164ad',
    500: '#5f248a',
    950: '#000000',
  },
}
SCSS
$custom: #5f248a;
$custom-light: #9164ad;
$custom-dark: #000000;
JSON
{
  "hex": "#5f248a",
  "rgb": {
    "r": 95,
    "g": 36,
    "b": 138
  },
  "hsl": {
    "h": 274.706,
    "s": 58.621,
    "l": 34.118
  },
  "oklch": {
    "l": 0.40104,
    "c": 0.16177,
    "h": 306.9
  },
  "luminance": 0.0553
}

Semantic roles & 50–950 ramp

primary
#5F248A
secondary
#7DB753
accent
#E24688
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5F248A

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

Preview Lab → · Contrast checker → · Palette generator →

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