#4E2BB2#4E2BB2

#4E2BB2 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.5% C 0.197 H 286.4°. Best body text is #FFFFFF at 9.08:1 contrast (WCAG AA passes).

Color values

HEX#4E2BB2
RGBrgb(78, 43, 178)
HSLhsl(256, 61%, 43%)
HSVhsv(256, 76%, 70%)
CMYKcmyk(56.2%, 75.8%, 0%, 30.2%)
CIE-LABlab(30.79, 49.44, -65.78)
CIE-LCHlch(30.79, 82.29, 306.93°)
OKLaboklab(42.54% 0.0559 -0.1893)
OKLCHoklch(42.54% 0.197 286.4)
XYZxyz(12.0392, 6.5611, 42.7429)
Luminance0.0656 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2BB2 #8FB22B
analogous
#2B4BB2 #4E2BB2 #912BB2
triadic
#4E2BB2 #B24E2B #2BB24E
tetradic
#4E2BB2 #B22B4B #8FB22B #2BB291
square
#4E2BB2 #B22B4B #8FB22B #2BB291
split-complementary
#4E2BB2 #B2912B #4BB22B
monochromatic
#23134F #381F81 #4E2BB2 #6C48D3 #9379DF

Accessibility & contrast

On white

9.08
#4E2BB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#4E2BB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2BB2
9.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2BB2#FFFFFF#000000##FFFFFF
##4E2BB21.009.082.319.08
#FFFFFF9.081.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB6
Deuteranopia (green-blind)
#0045B0
Tritanopia (blue-blind)
#20516D
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4e2bb2;
/* rgb */ color: rgb(78, 43, 178);
/* oklch */ color: oklch(42.5% 0.197 286.4);
Tailwind
colors: {
  custom: {
    50: '#8b69ca',
    500: '#4e2bb2',
    950: '#000000',
  },
}
SCSS
$custom: #4e2bb2;
$custom-light: #8b69ca;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2bb2",
  "rgb": {
    "r": 78,
    "g": 43,
    "b": 178
  },
  "hsl": {
    "h": 255.556,
    "s": 61.086,
    "l": 43.333
  },
  "oklch": {
    "l": 0.42541,
    "c": 0.19741,
    "h": 286.4
  },
  "luminance": 0.06562
}

Semantic roles & 50–950 ramp

primary
#4E2BB2
secondary
#B1C772
accent
#E444BB
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4E2BB2

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

Preview Lab → · Contrast checker → · Palette generator →

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