#5E259F#5E259F

#5E259F is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.8% C 0.183 H 299.5°. Best body text is #FFFFFF at 9.37:1 contrast (WCAG AA passes).

Color values

HEX#5E259F
RGBrgb(94, 37, 159)
HSLhsl(268, 62%, 38%)
HSVhsv(268, 77%, 62%)
CMYKcmyk(40.9%, 76.7%, 0%, 37.6%)
CIE-LABlab(29.93, 49.59, -55.68)
CIE-LCHlch(29.93, 74.56, 311.69°)
OKLaboklab(41.83% 0.09 -0.1592)
OKLCHoklch(41.83% 0.183 299.5)
XYZxyz(11.5341, 6.2059, 33.3843)
Luminance0.0621 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E259F #669F25
analogous
#25299F #5E259F #9B259F
triadic
#5E259F #9F5E25 #259F5E
tetradic
#5E259F #9F2529 #669F25 #259F9B
square
#5E259F #9F2529 #669F25 #259F9B
split-complementary
#5E259F #9F9B25 #299F25
monochromatic
#230E3C #41196D #5E259F #7B32CF #9B64DB

Accessibility & contrast

On white

9.37
#5E259F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#5E259F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E259F
9.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E259F#FFFFFF#000000##FFFFFF
##5E259F1.009.372.249.37
#FFFFFF9.371.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A2
Deuteranopia (green-blind)
#00459D
Tritanopia (blue-blind)
#4E4561
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5e259f;
/* rgb */ color: rgb(94, 37, 159);
/* oklch */ color: oklch(41.8% 0.183 299.5);
Tailwind
colors: {
  custom: {
    50: '#9266bc',
    500: '#5e259f',
    950: '#000000',
  },
}
SCSS
$custom: #5e259f;
$custom-light: #9266bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5e259f",
  "rgb": {
    "r": 94,
    "g": 37,
    "b": 159
  },
  "hsl": {
    "h": 268.033,
    "s": 62.245,
    "l": 38.431
  },
  "oklch": {
    "l": 0.41831,
    "c": 0.18284,
    "h": 299.5
  },
  "luminance": 0.06206
}

Semantic roles & 50–950 ramp

primary
#5E259F
secondary
#93C05F
accent
#E54299
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5E259F

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

Preview Lab → · Contrast checker → · Palette generator →

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