#4E2FB2#4E2FB2

#4E2FB2 is a dark, vivid violet. Relative luminance 0.069; OKLCH L 43.0% C 0.193 H 285.9°. Best body text is #FFFFFF at 8.85:1 contrast (WCAG AA passes).

Color values

HEX#4E2FB2
RGBrgb(78, 47, 178)
HSLhsl(254, 58%, 44%)
HSVhsv(254, 74%, 70%)
CMYKcmyk(56.2%, 73.6%, 0%, 30.2%)
CIE-LABlab(31.50, 47.42, -64.60)
CIE-LCHlch(31.50, 80.14, 306.28°)
OKLaboklab(43.05% 0.0528 -0.1859)
OKLCHoklch(43.05% 0.193 285.9)
XYZxyz(12.1919, 6.8664, 42.7938)
Luminance0.0687 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2FB2 #93B22F
analogous
#2F52B2 #4E2FB2 #8F2FB2
triadic
#4E2FB2 #B24E2F #2FB24E
tetradic
#4E2FB2 #B22F52 #93B22F #2FB28F
square
#4E2FB2 #B22F52 #93B22F #2FB28F
split-complementary
#4E2FB2 #B28F2F #52B22F
monochromatic
#241551 #392282 #4E2FB2 #6D4ED0 #957EDD

Accessibility & contrast

On white

8.85
#4E2FB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#4E2FB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2FB2
8.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2FB2#FFFFFF#000000##FFFFFF
##4E2FB21.008.852.378.85
#FFFFFF8.851.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB6
Deuteranopia (green-blind)
#0046B0
Tritanopia (blue-blind)
#1F536E
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #4e2fb2;
/* rgb */ color: rgb(78, 47, 178);
/* oklch */ color: oklch(43.0% 0.193 285.9);
Tailwind
colors: {
  custom: {
    50: '#8a6bca',
    500: '#4e2fb2',
    950: '#000000',
  },
}
SCSS
$custom: #4e2fb2;
$custom-light: #8a6bca;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2fb2",
  "rgb": {
    "r": 78,
    "g": 47,
    "b": 178
  },
  "hsl": {
    "h": 254.198,
    "s": 58.222,
    "l": 44.118
  },
  "oklch": {
    "l": 0.43045,
    "c": 0.19328,
    "h": 285.9
  },
  "luminance": 0.06867
}

Semantic roles & 50–950 ramp

primary
#4E2FB2
secondary
#B3C677
accent
#E146BD
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #4E2FB2

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

Preview Lab → · Contrast checker → · Palette generator →

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