#4D34C2#4D34C2

#4D34C2 is a mid, highly saturated violet. Relative luminance 0.079; OKLCH L 45.1% C 0.207 H 282.3°. Best body text is #FFFFFF at 8.12:1 contrast (WCAG AA passes).

Color values

HEX#4D34C2
RGBrgb(77, 52, 194)
HSLhsl(251, 58%, 48%)
HSVhsv(251, 73%, 76%)
CMYKcmyk(60.3%, 73.2%, 0%, 23.9%)
CIE-LABlab(33.83, 49.41, -70.23)
CIE-LCHlch(33.83, 85.87, 305.13°)
OKLaboklab(45.13% 0.044 -0.2025)
OKLCHoklch(45.13% 0.207 282.3)
XYZxyz(14.0231, 7.9278, 51.8197)
Luminance0.0793 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D34C2 #A9C234
analogous
#3462C2 #4D34C2 #9434C2
triadic
#4D34C2 #C24D34 #34C24D
tetradic
#4D34C2 #C23462 #A9C234 #34C294
square
#4D34C2 #C23462 #A9C234 #34C294
split-complementary
#4D34C2 #C29434 #62C234
monochromatic
#271A61 #3A2792 #4D34C2 #745FD4 #9E8FE1

Accessibility & contrast

On white

8.12
#4D34C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#4D34C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D34C2
8.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D34C2#FFFFFF#000000##FFFFFF
##4D34C21.008.122.598.12
#FFFFFF8.121.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054C6
Deuteranopia (green-blind)
#004BBF
Tritanopia (blue-blind)
#005B78
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #4d34c2;
/* rgb */ color: rgb(77, 52, 194);
/* oklch */ color: oklch(45.1% 0.207 282.3);
Tailwind
colors: {
  custom: {
    50: '#8c6ed6',
    500: '#4d34c2',
    950: '#000000',
  },
}
SCSS
$custom: #4d34c2;
$custom-light: #8c6ed6;
$custom-dark: #000000;
JSON
{
  "hex": "#4d34c2",
  "rgb": {
    "r": 77,
    "g": 52,
    "b": 194
  },
  "hsl": {
    "h": 250.563,
    "s": 57.724,
    "l": 48.235
  },
  "oklch": {
    "l": 0.45125,
    "c": 0.20719,
    "h": 282.3
  },
  "luminance": 0.07929
}

Semantic roles & 50–950 ramp

primary
#4D34C2
secondary
#BFCC86
accent
#E147C6
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0D0714
muted
#7E7A83

Preview Lab

Preview with #4D34C2

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

Preview Lab → · Contrast checker → · Palette generator →

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