#4E25A7#4E25A7

#4E25A7 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.8% C 0.191 H 289.4°. Best body text is #FFFFFF at 9.78:1 contrast (WCAG AA passes).

Color values

HEX#4E25A7
RGBrgb(78, 37, 167)
HSLhsl(259, 64%, 40%)
HSVhsv(259, 78%, 65%)
CMYKcmyk(53.3%, 77.8%, 0%, 34.5%)
CIE-LABlab(28.73, 49.21, -62.56)
CIE-LCHlch(28.73, 79.60, 308.19°)
OKLaboklab(40.78% 0.0634 -0.1799)
OKLCHoklch(40.78% 0.191 289.4)
XYZxyz(10.7765, 5.7324, 37.0904)
Luminance0.0573 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E25A7 #7EA725
analogous
#253DA7 #4E25A7 #8F25A7
triadic
#4E25A7 #A74E25 #25A74E
tetradic
#4E25A7 #A7253D #7EA725 #25A78F
square
#4E25A7 #A7253D #7EA725 #25A78F
split-complementary
#4E25A7 #A78F25 #3DA725
monochromatic
#1F0F43 #371A75 #4E25A7 #6837D3 #8E69DE

Accessibility & contrast

On white

9.78
#4E25A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#4E25A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E25A7
9.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E25A7#FFFFFF#000000##FFFFFF
##4E25A71.009.782.159.78
#FFFFFF9.781.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AB
Deuteranopia (green-blind)
#0041A5
Tritanopia (blue-blind)
#2C4A65
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4e25a7;
/* rgb */ color: rgb(78, 37, 167);
/* oklch */ color: oklch(40.8% 0.191 289.4);
Tailwind
colors: {
  custom: {
    50: '#8965c2',
    500: '#4e25a7',
    950: '#000000',
  },
}
SCSS
$custom: #4e25a7;
$custom-light: #8965c2;
$custom-dark: #000000;
JSON
{
  "hex": "#4e25a7",
  "rgb": {
    "r": 78,
    "g": 37,
    "b": 167
  },
  "hsl": {
    "h": 258.923,
    "s": 63.725,
    "l": 40
  },
  "oklch": {
    "l": 0.4078,
    "c": 0.19073,
    "h": 289.4
  },
  "luminance": 0.05733
}

Semantic roles & 50–950 ramp

primary
#4E25A7
secondary
#A6C464
accent
#E741B2
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4E25A7

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

Preview Lab → · Contrast checker → · Palette generator →

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