#4E38AF#4E38AF

#4E38AF is a dark, vivid violet. Relative luminance 0.075; OKLCH L 44.0% C 0.179 H 284.8°. Best body text is #FFFFFF at 8.37:1 contrast (WCAG AA passes).

Color values

HEX#4E38AF
RGBrgb(78, 56, 175)
HSLhsl(251, 52%, 45%)
HSVhsv(251, 68%, 69%)
CMYKcmyk(55.4%, 68%, 0%, 31.4%)
CIE-LABlab(33.01, 41.59, -60.34)
CIE-LCHlch(33.01, 73.29, 304.58°)
OKLaboklab(44.04% 0.0458 -0.1735)
OKLCHoklch(44.04% 0.179 284.8)
XYZxyz(12.2916, 7.5425, 41.3573)
Luminance0.0754 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E38AF #99AF38
analogous
#385EAF #4E38AF #8938AF
triadic
#4E38AF #AF4E38 #38AF4E
tetradic
#4E38AF #AF385E #99AF38 #38AF89
square
#4E38AF #AF385E #99AF38 #38AF89
split-complementary
#4E38AF #AF8938 #5EAF38
monochromatic
#251A52 #392981 #4E38AF #6F5ACA #9788D9

Accessibility & contrast

On white

8.37
#4E38AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#4E38AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E38AF
8.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E38AF#FFFFFF#000000##FFFFFF
##4E38AF1.008.372.518.37
#FFFFFF8.371.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B3
Deuteranopia (green-blind)
#004AAD
Tritanopia (blue-blind)
#22566F
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #4e38af;
/* rgb */ color: rgb(78, 56, 175);
/* oklch */ color: oklch(44.0% 0.179 284.8);
Tailwind
colors: {
  custom: {
    50: '#8970c8',
    500: '#4e38af',
    950: '#000000',
  },
}
SCSS
$custom: #4e38af;
$custom-light: #8970c8;
$custom-dark: #000000;
JSON
{
  "hex": "#4e38af",
  "rgb": {
    "r": 78,
    "g": 56,
    "b": 175
  },
  "hsl": {
    "h": 251.092,
    "s": 51.515,
    "l": 45.294
  },
  "oklch": {
    "l": 0.4404,
    "c": 0.1794,
    "h": 284.8
  },
  "luminance": 0.07543
}

Semantic roles & 50–950 ramp

primary
#4E38AF
secondary
#B7C380
accent
#DB4DC1
background
#F8F6FC
surface
#F0ECF8
border
#CBC7D1
text
#0D0813
muted
#7D7B82

Preview Lab

Preview with #4E38AF

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

Preview Lab → · Contrast checker → · Palette generator →

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