#4E338F#4E338F

#4E338F is a dark, vivid violet. Relative luminance 0.060; OKLCH L 40.6% C 0.145 H 292.2°. Best body text is #FFFFFF at 9.57:1 contrast (WCAG AA passes).

Color values

HEX#4E338F
RGBrgb(78, 51, 143)
HSLhsl(258, 47%, 38%)
HSVhsv(258, 64%, 56%)
CMYKcmyk(45.5%, 64.3%, 0%, 43.9%)
CIE-LABlab(29.34, 34.84, -46.93)
CIE-LCHlch(29.34, 58.45, 306.59°)
OKLaboklab(40.57% 0.0548 -0.1341)
OKLCHoklch(40.57% 0.145 292.2)
XYZxyz(9.2823, 5.9702, 26.6446)
Luminance0.0597 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E338F #748F33
analogous
#33468F #4E338F #7C338F
triadic
#4E338F #8F4E33 #338F4E
tetradic
#4E338F #8F3346 #748F33 #338F7C
square
#4E338F #8F3346 #748F33 #338F7C
split-complementary
#4E338F #8F7C33 #468F33
monochromatic
#1D1335 #352362 #4E338F #6743BC #8B70CC

Accessibility & contrast

On white

9.57
#4E338F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E338F
9.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E338F#FFFFFF#000000##FFFFFF
##4E338F1.009.572.199.57
#FFFFFF9.571.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004692
Deuteranopia (green-blind)
#00438D
Tritanopia (blue-blind)
#3B485C
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4e338f;
/* rgb */ color: rgb(78, 51, 143);
/* oklch */ color: oklch(40.6% 0.145 292.2);
Tailwind
colors: {
  custom: {
    50: '#856cb0',
    500: '#4e338f',
    950: '#000000',
  },
}
SCSS
$custom: #4e338f;
$custom-light: #856cb0;
$custom-dark: #000000;
JSON
{
  "hex": "#4e338f",
  "rgb": {
    "r": 78,
    "g": 51,
    "b": 143
  },
  "hsl": {
    "h": 257.609,
    "s": 47.423,
    "l": 38.039
  },
  "oklch": {
    "l": 0.40574,
    "c": 0.14482,
    "h": 292.2
  },
  "luminance": 0.05971
}

Semantic roles & 50–950 ramp

primary
#4E338F
secondary
#9EB46A
accent
#D751B0
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0B0711
muted
#7C7A80

Preview Lab

Preview with #4E338F

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

Preview Lab → · Contrast checker → · Palette generator →

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