#4D38C3#4D38C3

#4D38C3 is a mid, highly saturated blue. Relative luminance 0.083; OKLCH L 45.8% C 0.204 H 281.6°. Best body text is #FFFFFF at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#4D38C3
RGBrgb(77, 56, 195)
HSLhsl(249, 55%, 49%)
HSVhsv(249, 71%, 76%)
CMYKcmyk(60.5%, 71.3%, 0%, 23.5%)
CIE-LABlab(34.69, 47.57, -69.41)
CIE-LCHlch(34.69, 84.14, 304.43°)
OKLaboklab(45.76% 0.0409 -0.2001)
OKLCHoklch(45.76% 0.204 281.6)
XYZxyz(14.3220, 8.3452, 52.4753)
Luminance0.0835 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D38C3 #AEC338
analogous
#3869C3 #4D38C3 #9338C3
triadic
#4D38C3 #C34D38 #38C34D
tetradic
#4D38C3 #C33869 #AEC338 #38C393
square
#4D38C3 #C33869 #AEC338 #38C393
split-complementary
#4D38C3 #C39338 #69C338
monochromatic
#271D64 #3A2A93 #4D38C3 #7665D3 #A095E1

Accessibility & contrast

On white

7.87
#4D38C3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#4D38C3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D38C3
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D38C3#FFFFFF#000000##FFFFFF
##4D38C31.007.872.677.87
#FFFFFF7.871.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C7
Deuteranopia (green-blind)
#004DC0
Tritanopia (blue-blind)
#005E7A
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #4d38c3;
/* rgb */ color: rgb(77, 56, 195);
/* oklch */ color: oklch(45.8% 0.204 281.6);
Tailwind
colors: {
  custom: {
    50: '#8c71d6',
    500: '#4d38c3',
    950: '#000000',
  },
}
SCSS
$custom: #4d38c3;
$custom-light: #8c71d6;
$custom-dark: #000000;
JSON
{
  "hex": "#4d38c3",
  "rgb": {
    "r": 77,
    "g": 56,
    "b": 195
  },
  "hsl": {
    "h": 249.065,
    "s": 55.378,
    "l": 49.216
  },
  "oklch": {
    "l": 0.45763,
    "c": 0.20421,
    "h": 281.6
  },
  "luminance": 0.08346
}

Semantic roles & 50–950 ramp

primary
#4D38C3
secondary
#C2CC8B
accent
#DF49C8
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0D0814
muted
#7E7B83

Preview Lab

Preview with #4D38C3

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

Preview Lab → · Contrast checker → · Palette generator →

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