#4E25B1#4E25B1

#4E25B1 is a dark, highly saturated violet. Relative luminance 0.061; OKLCH L 41.8% C 0.202 H 287.4°. Best body text is #FFFFFF at 9.44:1 contrast (WCAG AA passes).

Color values

HEX#4E25B1
RGBrgb(78, 37, 177)
HSLhsl(258, 65%, 42%)
HSVhsv(258, 79%, 69%)
CMYKcmyk(55.9%, 79.1%, 0%, 30.6%)
CIE-LABlab(29.70, 51.98, -66.96)
CIE-LCHlch(29.70, 84.77, 307.82°)
OKLaboklab(41.76% 0.0604 -0.1927)
OKLCHoklch(41.76% 0.202 287.4)
XYZxyz(11.7369, 6.1165, 42.1486)
Luminance0.0612 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E25B1 #88B125
analogous
#2542B1 #4E25B1 #9425B1
triadic
#4E25B1 #B14E25 #25B14E
tetradic
#4E25B1 #B12542 #88B125 #25B194
square
#4E25B1 #B12542 #88B125 #25B194
split-complementary
#4E25B1 #B19425 #42B125
monochromatic
#21104C #381A7E #4E25B1 #6A3DD6 #916FE1

Accessibility & contrast

On white

9.44
#4E25B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#4E25B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E25B1
9.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E25B1#FFFFFF#000000##FFFFFF
##4E25B11.009.442.229.44
#FFFFFF9.441.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B5
Deuteranopia (green-blind)
#0042AE
Tritanopia (blue-blind)
#224E6B
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4e25b1;
/* rgb */ color: rgb(78, 37, 177);
/* oklch */ color: oklch(41.8% 0.202 287.4);
Tailwind
colors: {
  custom: {
    50: '#8b65ca',
    500: '#4e25b1',
    950: '#000000',
  },
}
SCSS
$custom: #4e25b1;
$custom-light: #8b65ca;
$custom-dark: #000000;
JSON
{
  "hex": "#4e25b1",
  "rgb": {
    "r": 78,
    "g": 37,
    "b": 177
  },
  "hsl": {
    "h": 257.571,
    "s": 65.421,
    "l": 41.961
  },
  "oklch": {
    "l": 0.41756,
    "c": 0.20197,
    "h": 287.4
  },
  "luminance": 0.06117
}

Semantic roles & 50–950 ramp

primary
#4E25B1
secondary
#ACC86A
accent
#E83FB7
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4E25B1

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

Preview Lab → · Contrast checker → · Palette generator →

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