#4D38AE#4D38AE

#4D38AE is a dark, vivid violet. Relative luminance 0.075; OKLCH L 43.9% C 0.178 H 284.5°. Best body text is #FFFFFF at 8.43:1 contrast (WCAG AA passes).

Color values

HEX#4D38AE
RGBrgb(77, 56, 174)
HSLhsl(251, 51%, 45%)
HSVhsv(251, 68%, 68%)
CMYKcmyk(55.7%, 67.8%, 0%, 31.8%)
CIE-LABlab(32.84, 41.12, -60.03)
CIE-LCHlch(32.84, 72.77, 304.41°)
OKLaboklab(43.86% 0.0445 -0.1726)
OKLCHoklch(43.86% 0.178 284.5)
XYZxyz(12.1124, 7.4614, 40.8381)
Luminance0.0746 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D38AE #99AE38
analogous
#385EAE #4D38AE #8838AE
triadic
#4D38AE #AE4D38 #38AE4D
tetradic
#4D38AE #AE385E #99AE38 #38AE88
square
#4D38AE #AE385E #99AE38 #38AE88
split-complementary
#4D38AE #AE8838 #5EAE38
monochromatic
#241A51 #392980 #4D38AE #6D59CA #9688D9

Accessibility & contrast

On white

8.43
#4D38AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#4D38AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D38AE
8.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D38AE#FFFFFF#000000##FFFFFF
##4D38AE1.008.432.498.43
#FFFFFF8.431.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B2
Deuteranopia (green-blind)
#0049AC
Tritanopia (blue-blind)
#20566E
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #4d38ae;
/* rgb */ color: rgb(77, 56, 174);
/* oklch */ color: oklch(43.9% 0.178 284.5);
Tailwind
colors: {
  custom: {
    50: '#8970c7',
    500: '#4d38ae',
    950: '#000000',
  },
}
SCSS
$custom: #4d38ae;
$custom-light: #8970c7;
$custom-dark: #000000;
JSON
{
  "hex": "#4d38ae",
  "rgb": {
    "r": 77,
    "g": 56,
    "b": 174
  },
  "hsl": {
    "h": 250.678,
    "s": 51.304,
    "l": 45.098
  },
  "oklch": {
    "l": 0.43865,
    "c": 0.17824,
    "h": 284.5
  },
  "luminance": 0.07462
}

Semantic roles & 50–950 ramp

primary
#4D38AE
secondary
#B7C37F
accent
#DB4DC2
background
#F8F6FC
surface
#F0ECF8
border
#CBC7D1
text
#0C0713
muted
#7D7A82

Preview Lab

Preview with #4D38AE

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

Preview Lab → · Contrast checker → · Palette generator →

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