#4E348B#4E348B

#4E348B is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.4% C 0.138 H 293.0°. Best body text is #FFFFFF at 9.60:1 contrast (WCAG AA passes).

Color values

HEX#4E348B
RGBrgb(78, 52, 139)
HSLhsl(258, 46%, 37%)
HSVhsv(258, 63%, 55%)
CMYKcmyk(43.9%, 62.6%, 0%, 45.5%)
CIE-LABlab(29.26, 33.06, -44.58)
CIE-LCHlch(29.26, 55.50, 306.55°)
OKLaboklab(40.42% 0.0539 -0.1272)
OKLCHoklch(40.42% 0.138 293)
XYZxyz(9.0288, 5.9395, 25.0918)
Luminance0.0594 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E348B #718B34
analogous
#34458B #4E348B #7A348B
triadic
#4E348B #8B4E34 #348B4E
tetradic
#4E348B #8B3445 #718B34 #348B7A
square
#4E348B #8B3445 #718B34 #348B7A
split-complementary
#4E348B #8B7A34 #458B34
monochromatic
#1C1332 #35235E #4E348B #6745B8 #8B70C9

Accessibility & contrast

On white

9.60
#4E348B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#4E348B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E348B
9.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E348B#FFFFFF#000000##FFFFFF
##4E348B1.009.602.199.60
#FFFFFF9.601.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468E
Deuteranopia (green-blind)
#004389
Tritanopia (blue-blind)
#3D485A
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4e348b;
/* rgb */ color: rgb(78, 52, 139);
/* oklch */ color: oklch(40.4% 0.138 293.0);
Tailwind
colors: {
  custom: {
    50: '#846dad',
    500: '#4e348b',
    950: '#000000',
  },
}
SCSS
$custom: #4e348b;
$custom-light: #846dad;
$custom-dark: #000000;
JSON
{
  "hex": "#4e348b",
  "rgb": {
    "r": 78,
    "g": 52,
    "b": 139
  },
  "hsl": {
    "h": 257.931,
    "s": 45.55,
    "l": 37.451
  },
  "oklch": {
    "l": 0.40422,
    "c": 0.1381,
    "h": 293
  },
  "luminance": 0.0594
}

Semantic roles & 50–950 ramp

primary
#4E348B
secondary
#9CB269
accent
#D553AE
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0710
muted
#7C7A7F

Preview Lab

Preview with #4E348B

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

Preview Lab → · Contrast checker → · Palette generator →

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