#4D34C7#4D34C7

#4D34C7 is a mid, highly saturated violet. Relative luminance 0.082; OKLCH L 45.6% C 0.213 H 281.6°. Best body text is #FFFFFF at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#4D34C7
RGBrgb(77, 52, 199)
HSLhsl(250, 59%, 49%)
HSVhsv(250, 74%, 78%)
CMYKcmyk(61.3%, 73.9%, 0%, 22%)
CIE-LABlab(34.31, 50.91, -72.38)
CIE-LCHlch(34.31, 88.49, 305.12°)
OKLaboklab(45.6% 0.0429 -0.2087)
OKLCHoklch(45.6% 0.213 281.6)
XYZxyz(14.5941, 8.1562, 54.8270)
Luminance0.0816 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D34C7 #AEC734
analogous
#3465C7 #4D34C7 #9734C7
triadic
#4D34C7 #C74D34 #34C74D
tetradic
#4D34C7 #C73465 #AEC734 #34C797
square
#4D34C7 #C73465 #AEC734 #34C797
split-complementary
#4D34C7 #C79734 #65C734
monochromatic
#271B66 #3A2796 #4D34C7 #7662D6 #A093E3

Accessibility & contrast

On white

7.98
#4D34C7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#4D34C7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D34C7
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D34C7#FFFFFF#000000##FFFFFF
##4D34C71.007.982.637.98
#FFFFFF7.981.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056CB
Deuteranopia (green-blind)
#004BC4
Tritanopia (blue-blind)
#005D7B
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #4d34c7;
/* rgb */ color: rgb(77, 52, 199);
/* oklch */ color: oklch(45.6% 0.213 281.6);
Tailwind
colors: {
  custom: {
    50: '#8d6fd9',
    500: '#4d34c7',
    950: '#000000',
  },
}
SCSS
$custom: #4d34c7;
$custom-light: #8d6fd9;
$custom-dark: #000000;
JSON
{
  "hex": "#4d34c7",
  "rgb": {
    "r": 77,
    "g": 52,
    "b": 199
  },
  "hsl": {
    "h": 250.204,
    "s": 58.566,
    "l": 49.216
  },
  "oklch": {
    "l": 0.45603,
    "c": 0.2131,
    "h": 281.6
  },
  "luminance": 0.08157
}

Semantic roles & 50–950 ramp

primary
#4D34C7
secondary
#C2CE89
accent
#E246C7
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #4D34C7

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

Preview Lab → · Contrast checker → · Palette generator →

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