#4E25B2#4E25B2

#4E25B2 is a dark, highly saturated violet. Relative luminance 0.062; OKLCH L 41.9% C 0.203 H 287.2°. Best body text is #FFFFFF at 9.41:1 contrast (WCAG AA passes).

Color values

HEX#4E25B2
RGBrgb(78, 37, 178)
HSLhsl(257, 66%, 42%)
HSVhsv(257, 79%, 70%)
CMYKcmyk(56.2%, 79.2%, 0%, 30.2%)
CIE-LABlab(29.80, 52.26, -67.39)
CIE-LCHlch(29.80, 85.28, 307.79°)
OKLaboklab(41.86% 0.06 -0.194)
OKLCHoklch(41.86% 0.203 287.2)
XYZxyz(11.8369, 6.1565, 42.6755)
Luminance0.0616 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E25B2 #89B225
analogous
#2543B2 #4E25B2 #9525B2
triadic
#4E25B2 #B24E25 #25B24E
tetradic
#4E25B2 #B22543 #89B225 #25B295
square
#4E25B2 #B22543 #89B225 #25B295
split-complementary
#4E25B2 #B29525 #43B225
monochromatic
#22104D #381A7F #4E25B2 #6A3DD7 #9170E1

Accessibility & contrast

On white

9.41
#4E25B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#4E25B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E25B2
9.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E25B2#FFFFFF#000000##FFFFFF
##4E25B21.009.412.239.41
#FFFFFF9.411.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B6
Deuteranopia (green-blind)
#0042AF
Tritanopia (blue-blind)
#204E6B
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4e25b2;
/* rgb */ color: rgb(78, 37, 178);
/* oklch */ color: oklch(41.9% 0.203 287.2);
Tailwind
colors: {
  custom: {
    50: '#8b65ca',
    500: '#4e25b2',
    950: '#000000',
  },
}
SCSS
$custom: #4e25b2;
$custom-light: #8b65ca;
$custom-dark: #000000;
JSON
{
  "hex": "#4e25b2",
  "rgb": {
    "r": 78,
    "g": 37,
    "b": 178
  },
  "hsl": {
    "h": 257.447,
    "s": 65.581,
    "l": 42.157
  },
  "oklch": {
    "l": 0.41855,
    "c": 0.20309,
    "h": 287.2
  },
  "luminance": 0.06157
}

Semantic roles & 50–950 ramp

primary
#4E25B2
secondary
#ADC86B
accent
#E93FB7
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4E25B2

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

Preview Lab → · Contrast checker → · Palette generator →

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