#4D34C6#4D34C6

#4D34C6 is a mid, highly saturated violet. Relative luminance 0.081; OKLCH L 45.5% C 0.212 H 281.7°. Best body text is #FFFFFF at 8.01:1 contrast (WCAG AA passes).

Color values

HEX#4D34C6
RGBrgb(77, 52, 198)
HSLhsl(250, 58%, 49%)
HSVhsv(250, 74%, 78%)
CMYKcmyk(61.1%, 73.7%, 0%, 22.4%)
CIE-LABlab(34.21, 50.61, -71.95)
CIE-LCHlch(34.21, 87.97, 305.12°)
OKLaboklab(45.51% 0.0431 -0.2075)
OKLCHoklch(45.51% 0.212 281.7)
XYZxyz(14.4784, 8.1099, 54.2176)
Luminance0.0811 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D34C6 #ADC634
analogous
#3464C6 #4D34C6 #9634C6
triadic
#4D34C6 #C64D34 #34C64D
tetradic
#4D34C6 #C63464 #ADC634 #34C696
square
#4D34C6 #C63464 #ADC634 #34C696
split-complementary
#4D34C6 #C69634 #64C634
monochromatic
#271B65 #3A2796 #4D34C6 #7562D6 #A092E2

Accessibility & contrast

On white

8.01
#4D34C6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#4D34C6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D34C6
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D34C6#FFFFFF#000000##FFFFFF
##4D34C61.008.012.628.01
#FFFFFF8.011.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055CA
Deuteranopia (green-blind)
#004BC3
Tritanopia (blue-blind)
#005D7A
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #4d34c6;
/* rgb */ color: rgb(77, 52, 198);
/* oklch */ color: oklch(45.5% 0.212 281.7);
Tailwind
colors: {
  custom: {
    50: '#8d6fd9',
    500: '#4d34c6',
    950: '#000000',
  },
}
SCSS
$custom: #4d34c6;
$custom-light: #8d6fd9;
$custom-dark: #000000;
JSON
{
  "hex": "#4d34c6",
  "rgb": {
    "r": 77,
    "g": 52,
    "b": 198
  },
  "hsl": {
    "h": 250.274,
    "s": 58.4,
    "l": 49.02
  },
  "oklch": {
    "l": 0.45507,
    "c": 0.21192,
    "h": 281.7
  },
  "luminance": 0.08111
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4D34C6

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

Preview Lab → · Contrast checker → · Palette generator →

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