#4E2DB2#4E2DB2

#4E2DB2 is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.8% C 0.195 H 286.2°. Best body text is #FFFFFF at 8.97:1 contrast (WCAG AA passes).

Color values

HEX#4E2DB2
RGBrgb(78, 45, 178)
HSLhsl(255, 60%, 44%)
HSVhsv(255, 75%, 70%)
CMYKcmyk(56.2%, 74.7%, 0%, 30.2%)
CIE-LABlab(31.14, 48.44, -65.20)
CIE-LCHlch(31.14, 81.23, 306.61°)
OKLaboklab(42.79% 0.0544 -0.1877)
OKLCHoklch(42.79% 0.195 286.2)
XYZxyz(12.1137, 6.7101, 42.7677)
Luminance0.0671 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2DB2 #91B22D
analogous
#2D4EB2 #4E2DB2 #902DB2
triadic
#4E2DB2 #B24E2D #2DB24E
tetradic
#4E2DB2 #B22D4E #91B22D #2DB290
square
#4E2DB2 #B22D4E #91B22D #2DB290
split-complementary
#4E2DB2 #B2902D #4EB22D
monochromatic
#231450 #392181 #4E2DB2 #6C4BD1 #947CDE

Accessibility & contrast

On white

8.97
#4E2DB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#4E2DB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2DB2
8.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2DB2#FFFFFF#000000##FFFFFF
##4E2DB21.008.972.348.97
#FFFFFF8.971.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB6
Deuteranopia (green-blind)
#0045B0
Tritanopia (blue-blind)
#1F526D
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #4e2db2;
/* rgb */ color: rgb(78, 45, 178);
/* oklch */ color: oklch(42.8% 0.195 286.2);
Tailwind
colors: {
  custom: {
    50: '#8b6aca',
    500: '#4e2db2',
    950: '#000000',
  },
}
SCSS
$custom: #4e2db2;
$custom-light: #8b6aca;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2db2",
  "rgb": {
    "r": 78,
    "g": 45,
    "b": 178
  },
  "hsl": {
    "h": 254.887,
    "s": 59.641,
    "l": 43.725
  },
  "oklch": {
    "l": 0.42788,
    "c": 0.19537,
    "h": 286.2
  },
  "luminance": 0.06711
}

Semantic roles & 50–950 ramp

primary
#4E2DB2
secondary
#B2C675
accent
#E345BC
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #4E2DB2

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

Preview Lab → · Contrast checker → · Palette generator →

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