#4E259D#4E259D

#4E259D is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.8% C 0.179 H 291.7°. Best body text is #FFFFFF at 10.12:1 contrast (WCAG AA passes).

Color values

HEX#4E259D
RGBrgb(78, 37, 157)
HSLhsl(261, 62%, 38%)
HSVhsv(261, 76%, 62%)
CMYKcmyk(50.3%, 76.4%, 0%, 38.4%)
CIE-LABlab(27.78, 46.44, -58.05)
CIE-LCHlch(27.78, 74.34, 308.66°)
OKLaboklab(39.83% 0.0662 -0.1667)
OKLCHoklch(39.83% 0.179 291.7)
XYZxyz(9.8875, 5.3768, 32.4086)
Luminance0.0538 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E259D #749D25
analogous
#25389D #4E259D #8A259D
triadic
#4E259D #9D4E25 #259D4E
tetradic
#4E259D #9D2538 #749D25 #259D8A
square
#4E259D #9D2538 #749D25 #259D8A
split-complementary
#4E259D #9D8A25 #389D25
monochromatic
#1D0E3A #35196B #4E259D #6731CE #8B62DA

Accessibility & contrast

On white

10.12
#4E259D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#4E259D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E259D
10.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E259D#FFFFFF#000000##FFFFFF
##4E259D1.0010.122.0810.12
#FFFFFF10.121.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A0
Deuteranopia (green-blind)
#003F9B
Tritanopia (blue-blind)
#34465F
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4e259d;
/* rgb */ color: rgb(78, 37, 157);
/* oklch */ color: oklch(39.8% 0.179 291.7);
Tailwind
colors: {
  custom: {
    50: '#8864bb',
    500: '#4e259d',
    950: '#000000',
  },
}
SCSS
$custom: #4e259d;
$custom-light: #8864bb;
$custom-dark: #000000;
JSON
{
  "hex": "#4e259d",
  "rgb": {
    "r": 78,
    "g": 37,
    "b": 157
  },
  "hsl": {
    "h": 260.5,
    "s": 61.856,
    "l": 38.039
  },
  "oklch": {
    "l": 0.39831,
    "c": 0.17933,
    "h": 291.7
  },
  "luminance": 0.05377
}

Semantic roles & 50–950 ramp

primary
#4E259D
secondary
#9EBF5E
accent
#E543AE
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4E259D

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

Preview Lab → · Contrast checker → · Palette generator →

#4E259D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva