#4E2DBA#4E2DBA

#4E2DBA is a dark, highly saturated violet. Relative luminance 0.070; OKLCH L 43.6% C 0.205 H 284.8°. Best body text is #FFFFFF at 8.72:1 contrast (WCAG AA passes).

Color values

HEX#4E2DBA
RGBrgb(78, 45, 186)
HSLhsl(254, 61%, 45%)
HSVhsv(254, 76%, 73%)
CMYKcmyk(58.1%, 75.8%, 0%, 27.1%)
CIE-LABlab(31.90, 50.76, -68.70)
CIE-LCHlch(31.90, 85.41, 306.46°)
OKLaboklab(43.56% 0.0523 -0.1979)
OKLCHoklch(43.56% 0.205 284.8)
XYZxyz(12.9405, 7.0408, 47.1220)
Luminance0.0704 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2DBA #99BA2D
analogous
#2D52BA #4E2DBA #952DBA
triadic
#4E2DBA #BA4E2D #2DBA4E
tetradic
#4E2DBA #BA2D52 #99BA2D #2DBA95
square
#4E2DBA #BA2D52 #99BA2D #2DBA95
split-complementary
#4E2DBA #BA952D #52BA2D
monochromatic
#251557 #392189 #4E2DBA #6F50D5 #9781E0

Accessibility & contrast

On white

8.72
#4E2DBA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#4E2DBA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2DBA
8.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2DBA#FFFFFF#000000##FFFFFF
##4E2DBA1.008.722.418.72
#FFFFFF8.721.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.721.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4e2dba;
/* rgb */ color: rgb(78, 45, 186);
/* oklch */ color: oklch(43.6% 0.205 284.8);
Tailwind
colors: {
  custom: {
    50: '#8c6ad0',
    500: '#4e2dba',
    950: '#000000',
  },
}
SCSS
$custom: #4e2dba;
$custom-light: #8c6ad0;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2dba",
  "rgb": {
    "r": 78,
    "g": 45,
    "b": 186
  },
  "hsl": {
    "h": 254.043,
    "s": 61.039,
    "l": 45.294
  },
  "oklch": {
    "l": 0.43555,
    "c": 0.20469,
    "h": 284.8
  },
  "luminance": 0.07042
}

Semantic roles & 50–950 ramp

primary
#4E2DBA
secondary
#B7C979
accent
#E444BF
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #4E2DBA

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

Preview Lab → · Contrast checker → · Palette generator →

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