#5F249D#5F249D

#5F249D is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.7% C 0.182 H 300.7°. Best body text is #FFFFFF at 9.43:1 contrast (WCAG AA passes).

Color values

HEX#5F249D
RGBrgb(95, 36, 157)
HSLhsl(269, 63%, 38%)
HSVhsv(269, 77%, 62%)
CMYKcmyk(39.5%, 77.1%, 0%, 38.4%)
CIE-LABlab(29.74, 49.69, -54.77)
CIE-LCHlch(29.74, 73.95, 312.22°)
OKLaboklab(41.67% 0.0929 -0.1564)
OKLCHoklch(41.67% 0.182 300.7)
XYZxyz(11.4345, 6.1289, 32.4723)
Luminance0.0613 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F249D #629D24
analogous
#24269D #5F249D #9B249D
triadic
#5F249D #9D5F24 #249D5F
tetradic
#5F249D #9D2426 #629D24 #249D9B
square
#5F249D #9D2426 #629D24 #249D9B
split-complementary
#5F249D #9D9B24 #269D24
monochromatic
#230D39 #41196B #5F249D #7D2FCF #9C61DB

Accessibility & contrast

On white

9.43
#5F249D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#5F249D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F249D
9.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F249D#FFFFFF#000000##FFFFFF
##5F249D1.009.432.239.43
#FFFFFF9.431.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A0
Deuteranopia (green-blind)
#00459B
Tritanopia (blue-blind)
#51445F
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5f249d;
/* rgb */ color: rgb(95, 36, 157);
/* oklch */ color: oklch(41.7% 0.182 300.7);
Tailwind
colors: {
  custom: {
    50: '#9265bb',
    500: '#5f249d',
    950: '#000000',
  },
}
SCSS
$custom: #5f249d;
$custom-light: #9265bb;
$custom-dark: #000000;
JSON
{
  "hex": "#5f249d",
  "rgb": {
    "r": 95,
    "g": 36,
    "b": 157
  },
  "hsl": {
    "h": 269.256,
    "s": 62.694,
    "l": 37.843
  },
  "oklch": {
    "l": 0.41674,
    "c": 0.18194,
    "h": 300.7
  },
  "luminance": 0.06129
}

Semantic roles & 50–950 ramp

primary
#5F249D
secondary
#90C05D
accent
#E64296
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5F249D

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

Preview Lab → · Contrast checker → · Palette generator →

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