#4E25B3#4E25B3

#4E25B3 is a dark, highly saturated violet. Relative luminance 0.062; OKLCH L 42.0% C 0.204 H 287.0°. Best body text is #FFFFFF at 9.38:1 contrast (WCAG AA passes).

Color values

HEX#4E25B3
RGBrgb(78, 37, 179)
HSLhsl(257, 66%, 42%)
HSVhsv(257, 79%, 70%)
CMYKcmyk(56.4%, 79.3%, 0%, 29.8%)
CIE-LABlab(29.90, 52.54, -67.82)
CIE-LCHlch(29.90, 85.79, 307.76°)
OKLaboklab(41.95% 0.0597 -0.1953)
OKLCHoklch(41.95% 0.204 287)
XYZxyz(11.9377, 6.1969, 43.2062)
Luminance0.0620 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E25B3 #8AB325
analogous
#2543B3 #4E25B3 #9525B3
triadic
#4E25B3 #B34E25 #25B34E
tetradic
#4E25B3 #B32543 #8AB325 #25B395
square
#4E25B3 #B32543 #8AB325 #25B395
split-complementary
#4E25B3 #B39525 #43B325
monochromatic
#22104E #381B80 #4E25B3 #6A3ED7 #9171E2

Accessibility & contrast

On white

9.38
#4E25B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#4E25B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E25B3
9.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E25B3#FFFFFF#000000##FFFFFF
##4E25B31.009.382.249.38
#FFFFFF9.381.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB7
Deuteranopia (green-blind)
#0042B0
Tritanopia (blue-blind)
#1F4F6C
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4e25b3;
/* rgb */ color: rgb(78, 37, 179);
/* oklch */ color: oklch(42.0% 0.204 287.0);
Tailwind
colors: {
  custom: {
    50: '#8b65cb',
    500: '#4e25b3',
    950: '#000000',
  },
}
SCSS
$custom: #4e25b3;
$custom-light: #8b65cb;
$custom-dark: #000000;
JSON
{
  "hex": "#4e25b3",
  "rgb": {
    "r": 78,
    "g": 37,
    "b": 179
  },
  "hsl": {
    "h": 257.324,
    "s": 65.741,
    "l": 42.353
  },
  "oklch": {
    "l": 0.41954,
    "c": 0.2042,
    "h": 287
  },
  "luminance": 0.06198
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4E25B3

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

Preview Lab → · Contrast checker → · Palette generator →

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