#4E25A8#4E25A8

#4E25A8 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.9% C 0.192 H 289.2°. Best body text is #FFFFFF at 9.75:1 contrast (WCAG AA passes).

Color values

HEX#4E25A8
RGBrgb(78, 37, 168)
HSLhsl(259, 64%, 40%)
HSVhsv(259, 78%, 66%)
CMYKcmyk(53.6%, 78%, 0%, 34.1%)
CIE-LABlab(28.82, 49.49, -63.01)
CIE-LCHlch(28.82, 80.12, 308.15°)
OKLaboklab(40.88% 0.0631 -0.1812)
OKLCHoklch(40.88% 0.192 289.2)
XYZxyz(10.8693, 5.7695, 37.5791)
Luminance0.0577 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E25A8 #7FA825
analogous
#253DA8 #4E25A8 #9025A8
triadic
#4E25A8 #A84E25 #25A84E
tetradic
#4E25A8 #A8253D #7FA825 #25A890
square
#4E25A8 #A8253D #7FA825 #25A890
split-complementary
#4E25A8 #A89025 #3DA825
monochromatic
#1F0F44 #371A76 #4E25A8 #6837D3 #8E69DE

Accessibility & contrast

On white

9.75
#4E25A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E25A8
9.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E25A8#FFFFFF#000000##FFFFFF
##4E25A81.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)
#0046AC
Deuteranopia (green-blind)
#0041A6
Tritanopia (blue-blind)
#2B4A66
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4e25a8;
/* rgb */ color: rgb(78, 37, 168);
/* oklch */ color: oklch(40.9% 0.192 289.2);
Tailwind
colors: {
  custom: {
    50: '#8a65c3',
    500: '#4e25a8',
    950: '#000000',
  },
}
SCSS
$custom: #4e25a8;
$custom-light: #8a65c3;
$custom-dark: #000000;
JSON
{
  "hex": "#4e25a8",
  "rgb": {
    "r": 78,
    "g": 37,
    "b": 168
  },
  "hsl": {
    "h": 258.779,
    "s": 63.902,
    "l": 40.196
  },
  "oklch": {
    "l": 0.40876,
    "c": 0.19186,
    "h": 289.2
  },
  "luminance": 0.0577
}

Semantic roles & 50–950 ramp

primary
#4E25A8
secondary
#A6C465
accent
#E741B3
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4E25A8

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

Preview Lab → · Contrast checker → · Palette generator →

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