#4E38AA#4E38AA

#4E38AA is a dark, vivid violet. Relative luminance 0.073; OKLCH L 43.6% C 0.173 H 285.6°. Best body text is #FFFFFF at 8.50:1 contrast (WCAG AA passes).

Color values

HEX#4E38AA
RGBrgb(78, 56, 170)
HSLhsl(252, 50%, 44%)
HSVhsv(252, 67%, 67%)
CMYKcmyk(54.1%, 67.1%, 0%, 33.3%)
CIE-LABlab(32.59, 40.06, -58.04)
CIE-LCHlch(32.59, 70.52, 304.61°)
OKLaboklab(43.61% 0.0465 -0.1667)
OKLCHoklch(43.61% 0.173 285.6)
XYZxyz(11.8096, 7.3497, 38.8188)
Luminance0.0735 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E38AA #94AA38
analogous
#385BAA #4E38AA #8738AA
triadic
#4E38AA #AA4E38 #38AA4E
tetradic
#4E38AA #AA385B #94AA38 #38AA87
square
#4E38AA #AA385B #94AA38 #38AA87
split-complementary
#4E38AA #AA8738 #5BAA38
monochromatic
#241A4E #39297C #4E38AA #6D57C8 #9585D7

Accessibility & contrast

On white

8.50
#4E38AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#4E38AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E38AA
8.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E38AA#FFFFFF#000000##FFFFFF
##4E38AA1.008.502.478.50
#FFFFFF8.501.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AE
Deuteranopia (green-blind)
#0049A8
Tritanopia (blue-blind)
#28556C
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #4e38aa;
/* rgb */ color: rgb(78, 56, 170);
/* oklch */ color: oklch(43.6% 0.173 285.6);
Tailwind
colors: {
  custom: {
    50: '#8870c4',
    500: '#4e38aa',
    950: '#000000',
  },
}
SCSS
$custom: #4e38aa;
$custom-light: #8870c4;
$custom-dark: #000000;
JSON
{
  "hex": "#4e38aa",
  "rgb": {
    "r": 78,
    "g": 56,
    "b": 170
  },
  "hsl": {
    "h": 251.579,
    "s": 50.442,
    "l": 44.314
  },
  "oklch": {
    "l": 0.43606,
    "c": 0.17306,
    "h": 285.6
  },
  "luminance": 0.0735
}

Semantic roles & 50–950 ramp

primary
#4E38AA
secondary
#B4C17D
accent
#DA4EBF
background
#F8F6FC
surface
#F0ECF8
border
#CBC7D1
text
#0C0713
muted
#7D7A82

Preview Lab

Preview with #4E38AA

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

Preview Lab → · Contrast checker → · Palette generator →

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