#4D38AF#4D38AF

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

Color values

HEX#4D38AF
RGBrgb(77, 56, 175)
HSLhsl(251, 52%, 45%)
HSVhsv(251, 68%, 69%)
CMYKcmyk(56%, 68%, 0%, 31.4%)
CIE-LABlab(32.92, 41.43, -60.49)
CIE-LCHlch(32.92, 73.32, 304.40°)
OKLaboklab(43.95% 0.0444 -0.1739)
OKLCHoklch(43.95% 0.18 284.3)
XYZxyz(12.2102, 7.5006, 41.3535)
Luminance0.0750 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D38AF #9AAF38
analogous
#385FAF #4D38AF #8838AF
triadic
#4D38AF #AF4D38 #38AF4D
tetradic
#4D38AF #AF385F #9AAF38 #38AF88
square
#4D38AF #AF385F #9AAF38 #38AF88
split-complementary
#4D38AF #AF8838 #5FAF38
monochromatic
#241A52 #392981 #4D38AF #6E5ACA #9788D9

Accessibility & contrast

On white

8.40
#4D38AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#4D38AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D38AF
8.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D38AF#FFFFFF#000000##FFFFFF
##4D38AF1.008.402.508.40
#FFFFFF8.401.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B3
Deuteranopia (green-blind)
#004AAD
Tritanopia (blue-blind)
#1F576F
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #4d38af;
/* rgb */ color: rgb(77, 56, 175);
/* oklch */ color: oklch(44.0% 0.180 284.3);
Tailwind
colors: {
  custom: {
    50: '#8970c8',
    500: '#4d38af',
    950: '#000000',
  },
}
SCSS
$custom: #4d38af;
$custom-light: #8970c8;
$custom-dark: #000000;
JSON
{
  "hex": "#4d38af",
  "rgb": {
    "r": 77,
    "g": 56,
    "b": 175
  },
  "hsl": {
    "h": 250.588,
    "s": 51.515,
    "l": 45.294
  },
  "oklch": {
    "l": 0.43952,
    "c": 0.17951,
    "h": 284.3
  },
  "luminance": 0.07501
}

Semantic roles & 50–950 ramp

primary
#4D38AF
secondary
#B7C380
accent
#DB4DC2
background
#F8F6FC
surface
#F0ECF8
border
#CBC7D1
text
#0D0713
muted
#7D7A82

Preview Lab

Preview with #4D38AF

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

Preview Lab → · Contrast checker → · Palette generator →

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