#4E338B#4E338B

#4E338B is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.3% C 0.140 H 293.2°. Best body text is #FFFFFF at 9.68:1 contrast (WCAG AA passes).

Color values

HEX#4E338B
RGBrgb(78, 51, 139)
HSLhsl(258, 46%, 37%)
HSVhsv(258, 63%, 55%)
CMYKcmyk(43.9%, 63.3%, 0%, 45.5%)
CIE-LABlab(29.03, 33.66, -44.95)
CIE-LCHlch(29.03, 56.15, 306.82°)
OKLaboklab(40.26% 0.0551 -0.1282)
OKLCHoklch(40.26% 0.14 293.2)
XYZxyz(8.9846, 5.8512, 25.0771)
Luminance0.0585 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E338B #708B33
analogous
#33448B #4E338B #7A338B
triadic
#4E338B #8B4E33 #338B4E
tetradic
#4E338B #8B3344 #708B33 #338B7A
square
#4E338B #8B3344 #708B33 #338B7A
split-complementary
#4E338B #8B7A33 #448B33
monochromatic
#1C1231 #35235E #4E338B #6743B8 #8B6ECA

Accessibility & contrast

On white

9.68
#4E338B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#4E338B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E338B
9.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E338B#FFFFFF#000000##FFFFFF
##4E338B1.009.682.179.68
#FFFFFF9.681.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458E
Deuteranopia (green-blind)
#004389
Tritanopia (blue-blind)
#3D475A
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4e338b;
/* rgb */ color: rgb(78, 51, 139);
/* oklch */ color: oklch(40.3% 0.140 293.2);
Tailwind
colors: {
  custom: {
    50: '#846cad',
    500: '#4e338b',
    950: '#000000',
  },
}
SCSS
$custom: #4e338b;
$custom-light: #846cad;
$custom-dark: #000000;
JSON
{
  "hex": "#4e338b",
  "rgb": {
    "r": 78,
    "g": 51,
    "b": 139
  },
  "hsl": {
    "h": 258.409,
    "s": 46.316,
    "l": 37.255
  },
  "oklch": {
    "l": 0.40258,
    "c": 0.13956,
    "h": 293.2
  },
  "luminance": 0.05851
}

Semantic roles & 50–950 ramp

primary
#4E338B
secondary
#9BB268
accent
#D652AD
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0710
muted
#7C7A7F

Preview Lab

Preview with #4E338B

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

Preview Lab → · Contrast checker → · Palette generator →

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