#4E25A5#4E25A5

#4E25A5 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.6% C 0.188 H 289.8°. Best body text is #FFFFFF at 9.85:1 contrast (WCAG AA passes).

Color values

HEX#4E25A5
RGBrgb(78, 37, 165)
HSLhsl(259, 63%, 40%)
HSVhsv(259, 78%, 65%)
CMYKcmyk(52.7%, 77.6%, 0%, 35.3%)
CIE-LABlab(28.54, 48.66, -61.67)
CIE-LCHlch(28.54, 78.55, 308.27°)
OKLaboklab(40.59% 0.064 -0.1773)
OKLCHoklch(40.59% 0.188 289.8)
XYZxyz(10.5930, 5.6590, 36.1241)
Luminance0.0566 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E25A5 #7CA525
analogous
#253CA5 #4E25A5 #8E25A5
triadic
#4E25A5 #A54E25 #25A54E
tetradic
#4E25A5 #A5253C #7CA525 #25A58E
square
#4E25A5 #A5253C #7CA525 #25A58E
split-complementary
#4E25A5 #A58E25 #3CA525
monochromatic
#1F0F41 #361A73 #4E25A5 #6835D2 #8D67DD

Accessibility & contrast

On white

9.85
#4E25A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#4E25A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E25A5
9.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E25A5#FFFFFF#000000##FFFFFF
##4E25A51.009.852.139.85
#FFFFFF9.851.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A9
Deuteranopia (green-blind)
#0040A3
Tritanopia (blue-blind)
#2E4964
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4e25a5;
/* rgb */ color: rgb(78, 37, 165);
/* oklch */ color: oklch(40.6% 0.188 289.8);
Tailwind
colors: {
  custom: {
    50: '#8965c1',
    500: '#4e25a5',
    950: '#000000',
  },
}
SCSS
$custom: #4e25a5;
$custom-light: #8965c1;
$custom-dark: #000000;
JSON
{
  "hex": "#4e25a5",
  "rgb": {
    "r": 78,
    "g": 37,
    "b": 165
  },
  "hsl": {
    "h": 259.219,
    "s": 63.366,
    "l": 39.608
  },
  "oklch": {
    "l": 0.40588,
    "c": 0.18846,
    "h": 289.8
  },
  "luminance": 0.05659
}

Semantic roles & 50–950 ramp

primary
#4E25A5
secondary
#A4C363
accent
#E641B2
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0D0612
muted
#7D7A81

Preview Lab

Preview with #4E25A5

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

Preview Lab → · Contrast checker → · Palette generator →

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