#5F2492#5F2492

#5F2492 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.7% C 0.170 H 304.1°. Best body text is #FFFFFF at 9.75:1 contrast (WCAG AA passes).

Color values

HEX#5F2492
RGBrgb(95, 36, 146)
HSLhsl(272, 60%, 36%)
HSVhsv(272, 75%, 57%)
CMYKcmyk(34.9%, 75.3%, 0%, 42.7%)
CIE-LABlab(28.82, 46.99, -49.52)
CIE-LCHlch(28.82, 68.26, 313.50°)
OKLaboklab(40.75% 0.0955 -0.141)
OKLCHoklch(40.75% 0.17 304.1)
XYZxyz(10.5373, 5.7700, 27.7471)
Luminance0.0577 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2492 #579224
analogous
#282492 #5F2492 #92248E
triadic
#5F2492 #925F24 #24925F
tetradic
#5F2492 #922824 #579224 #248E92
square
#5F2492 #922824 #579224 #248E92
split-complementary
#5F2492 #8E9224 #249228
monochromatic
#1F0C30 #3F1861 #5F2492 #7F30C3 #9D5AD6

Accessibility & contrast

On white

9.75
#5F2492 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#5F2492 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2492
9.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2492#FFFFFF#000000##FFFFFF
##5F24921.009.752.159.75
#FFFFFF9.751.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004395
Deuteranopia (green-blind)
#004490
Tritanopia (blue-blind)
#553F59
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5f2492;
/* rgb */ color: rgb(95, 36, 146);
/* oklch */ color: oklch(40.7% 0.170 304.1);
Tailwind
colors: {
  custom: {
    50: '#9165b3',
    500: '#5f2492',
    950: '#000000',
  },
}
SCSS
$custom: #5f2492;
$custom-light: #9165b3;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2492",
  "rgb": {
    "r": 95,
    "g": 36,
    "b": 146
  },
  "hsl": {
    "h": 272.182,
    "s": 60.44,
    "l": 35.686
  },
  "oklch": {
    "l": 0.40749,
    "c": 0.17027,
    "h": 304.1
  },
  "luminance": 0.0577
}

Semantic roles & 50–950 ramp

primary
#5F2492
secondary
#85BB57
accent
#E4448E
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5F2492

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

Preview Lab → · Contrast checker → · Palette generator →

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