#4E25B4#4E25B4

#4E25B4 is a dark, highly saturated violet. Relative luminance 0.062; OKLCH L 42.1% C 0.205 H 286.8°. Best body text is #FFFFFF at 9.34:1 contrast (WCAG AA passes).

Color values

HEX#4E25B4
RGBrgb(78, 37, 180)
HSLhsl(257, 66%, 43%)
HSVhsv(257, 79%, 71%)
CMYKcmyk(56.7%, 79.4%, 0%, 29.4%)
CIE-LABlab(30.00, 52.81, -68.26)
CIE-LCHlch(30.00, 86.30, 307.73°)
OKLaboklab(42.05% 0.0594 -0.1965)
OKLCHoklch(42.05% 0.205 286.8)
XYZxyz(12.0392, 6.2375, 43.7407)
Luminance0.0624 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E25B4 #8BB425
analogous
#2543B4 #4E25B4 #9625B4
triadic
#4E25B4 #B44E25 #25B44E
tetradic
#4E25B4 #B42543 #8BB425 #25B496
square
#4E25B4 #B42543 #8BB425 #25B496
split-complementary
#4E25B4 #B49625 #43B425
monochromatic
#22104E #381B81 #4E25B4 #6B3FD7 #9271E2

Accessibility & contrast

On white

9.34
#4E25B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#4E25B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E25B4
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E25B4#FFFFFF#000000##FFFFFF
##4E25B41.009.342.259.34
#FFFFFF9.341.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB8
Deuteranopia (green-blind)
#0043B1
Tritanopia (blue-blind)
#1E4F6D
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4e25b4;
/* rgb */ color: rgb(78, 37, 180);
/* oklch */ color: oklch(42.1% 0.205 286.8);
Tailwind
colors: {
  custom: {
    50: '#8b65cc',
    500: '#4e25b4',
    950: '#000000',
  },
}
SCSS
$custom: #4e25b4;
$custom-light: #8b65cc;
$custom-dark: #000000;
JSON
{
  "hex": "#4e25b4",
  "rgb": {
    "r": 78,
    "g": 37,
    "b": 180
  },
  "hsl": {
    "h": 257.203,
    "s": 65.899,
    "l": 42.549
  },
  "oklch": {
    "l": 0.42054,
    "c": 0.20532,
    "h": 286.8
  },
  "luminance": 0.06238
}

Semantic roles & 50–950 ramp

primary
#4E25B4
secondary
#AEC96C
accent
#E93FB8
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4E25B4

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

Preview Lab → · Contrast checker → · Palette generator →

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