#4E2FB6#4E2FB6

#4E2FB6 is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.4% C 0.198 H 285.2°. Best body text is #FFFFFF at 8.73:1 contrast (WCAG AA passes).

Color values

HEX#4E2FB6
RGBrgb(78, 47, 182)
HSLhsl(254, 59%, 45%)
HSVhsv(254, 74%, 71%)
CMYKcmyk(57.1%, 74.2%, 0%, 28.6%)
CIE-LABlab(31.87, 48.59, -66.37)
CIE-LCHlch(31.87, 82.25, 306.21°)
OKLaboklab(43.42% 0.0519 -0.1911)
OKLCHoklch(43.42% 0.198 285.2)
XYZxyz(12.5993, 7.0294, 44.9398)
Luminance0.0703 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2FB6 #97B62F
analogous
#2F53B6 #4E2FB6 #922FB6
triadic
#4E2FB6 #B64E2F #2FB64E
tetradic
#4E2FB6 #B62F53 #97B62F #2FB692
square
#4E2FB6 #B62F53 #97B62F #2FB692
split-complementary
#4E2FB6 #B6922F #53B62F
monochromatic
#241655 #392285 #4E2FB6 #6E50D2 #9681DE

Accessibility & contrast

On white

8.73
#4E2FB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E2FB6
8.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2FB6#FFFFFF#000000##FFFFFF
##4E2FB61.008.732.418.73
#FFFFFF8.731.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FBA
Deuteranopia (green-blind)
#0047B3
Tritanopia (blue-blind)
#195470
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #4e2fb6;
/* rgb */ color: rgb(78, 47, 182);
/* oklch */ color: oklch(43.4% 0.198 285.2);
Tailwind
colors: {
  custom: {
    50: '#8b6bcd',
    500: '#4e2fb6',
    950: '#000000',
  },
}
SCSS
$custom: #4e2fb6;
$custom-light: #8b6bcd;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2fb6",
  "rgb": {
    "r": 78,
    "g": 47,
    "b": 182
  },
  "hsl": {
    "h": 253.778,
    "s": 58.952,
    "l": 44.902
  },
  "oklch": {
    "l": 0.43421,
    "c": 0.19801,
    "h": 285.2
  },
  "luminance": 0.0703
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4E2FB6

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

Preview Lab → · Contrast checker → · Palette generator →

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