#4E2FB5#4E2FB5

#4E2FB5 is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.3% C 0.197 H 285.3°. Best body text is #FFFFFF at 8.76:1 contrast (WCAG AA passes).

Color values

HEX#4E2FB5
RGBrgb(78, 47, 181)
HSLhsl(254, 59%, 45%)
HSVhsv(254, 74%, 71%)
CMYKcmyk(56.9%, 74%, 0%, 29%)
CIE-LABlab(31.78, 48.30, -65.93)
CIE-LCHlch(31.78, 81.73, 306.23°)
OKLaboklab(43.33% 0.0521 -0.1898)
OKLCHoklch(43.33% 0.197 285.3)
XYZxyz(12.4964, 6.9882, 44.3975)
Luminance0.0699 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2FB5 #96B52F
analogous
#2F53B5 #4E2FB5 #912FB5
triadic
#4E2FB5 #B54E2F #2FB54E
tetradic
#4E2FB5 #B52F53 #96B52F #2FB591
square
#4E2FB5 #B52F53 #96B52F #2FB591
split-complementary
#4E2FB5 #B5912F #53B52F
monochromatic
#241654 #392284 #4E2FB5 #6E50D1 #9680DE

Accessibility & contrast

On white

8.76
#4E2FB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#4E2FB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2FB5
8.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2FB5#FFFFFF#000000##FFFFFF
##4E2FB51.008.762.408.76
#FFFFFF8.761.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB9
Deuteranopia (green-blind)
#0047B3
Tritanopia (blue-blind)
#1B546F
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #4e2fb5;
/* rgb */ color: rgb(78, 47, 181);
/* oklch */ color: oklch(43.3% 0.197 285.3);
Tailwind
colors: {
  custom: {
    50: '#8b6bcc',
    500: '#4e2fb5',
    950: '#000000',
  },
}
SCSS
$custom: #4e2fb5;
$custom-light: #8b6bcc;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2fb5",
  "rgb": {
    "r": 78,
    "g": 47,
    "b": 181
  },
  "hsl": {
    "h": 253.881,
    "s": 58.772,
    "l": 44.706
  },
  "oklch": {
    "l": 0.43327,
    "c": 0.19683,
    "h": 285.3
  },
  "luminance": 0.06989
}

Semantic roles & 50–950 ramp

primary
#4E2FB5
secondary
#B5C779
accent
#E246BE
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #4E2FB5

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

Preview Lab → · Contrast checker → · Palette generator →

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