#4E2CBA#4E2CBA

#4E2CBA is a dark, highly saturated violet. Relative luminance 0.070; OKLCH L 43.4% C 0.206 H 284.9°. Best body text is #FFFFFF at 8.77:1 contrast (WCAG AA passes).

Color values

HEX#4E2CBA
RGBrgb(78, 44, 186)
HSLhsl(254, 62%, 45%)
HSVhsv(254, 76%, 73%)
CMYKcmyk(58.1%, 76.3%, 0%, 27.1%)
CIE-LABlab(31.73, 51.25, -68.98)
CIE-LCHlch(31.73, 85.93, 306.61°)
OKLaboklab(43.44% 0.053 -0.1987)
OKLCHoklch(43.44% 0.206 284.9)
XYZxyz(12.9028, 6.9654, 47.1094)
Luminance0.0697 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2CBA #98BA2C
analogous
#2C51BA #4E2CBA #952CBA
triadic
#4E2CBA #BA4E2C #2CBA4E
tetradic
#4E2CBA #BA2C51 #98BA2C #2CBA95
square
#4E2CBA #BA2C51 #98BA2C #2CBA95
split-complementary
#4E2CBA #BA952C #51BA2C
monochromatic
#241557 #392089 #4E2CBA #6E4ED5 #9780E1

Accessibility & contrast

On white

8.77
#4E2CBA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#4E2CBA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2CBA
8.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2CBA#FFFFFF#000000##FFFFFF
##4E2CBA1.008.772.398.77
#FFFFFF8.771.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FBE
Deuteranopia (green-blind)
#0046B7
Tritanopia (blue-blind)
#125572
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #4e2cba;
/* rgb */ color: rgb(78, 44, 186);
/* oklch */ color: oklch(43.4% 0.206 284.9);
Tailwind
colors: {
  custom: {
    50: '#8c69d0',
    500: '#4e2cba',
    950: '#000000',
  },
}
SCSS
$custom: #4e2cba;
$custom-light: #8c69d0;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2cba",
  "rgb": {
    "r": 78,
    "g": 44,
    "b": 186
  },
  "hsl": {
    "h": 254.366,
    "s": 61.739,
    "l": 45.098
  },
  "oklch": {
    "l": 0.43435,
    "c": 0.20566,
    "h": 284.9
  },
  "luminance": 0.06966
}

Semantic roles & 50–950 ramp

primary
#4E2CBA
secondary
#B6CA78
accent
#E543BE
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #4E2CBA

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

Preview Lab → · Contrast checker → · Palette generator →

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