#4D34C9#4D34C9

#4D34C9 is a mid, highly saturated violet. Relative luminance 0.083; OKLCH L 45.8% C 0.215 H 281.4°. Best body text is #FFFFFF at 7.92:1 contrast (WCAG AA passes).

Color values

HEX#4D34C9
RGBrgb(77, 52, 201)
HSLhsl(250, 59%, 50%)
HSVhsv(250, 74%, 79%)
CMYKcmyk(61.7%, 74.1%, 0%, 21.2%)
CIE-LABlab(34.50, 51.50, -73.23)
CIE-LCHlch(34.50, 89.53, 305.12°)
OKLaboklab(45.8% 0.0424 -0.2112)
OKLCHoklch(45.8% 0.215 281.4)
XYZxyz(14.8279, 8.2497, 56.0580)
Luminance0.0825 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D34C9 #B0C934
analogous
#3466C9 #4D34C9 #9834C9
triadic
#4D34C9 #C94D34 #34C94D
tetradic
#4D34C9 #C93466 #B0C934 #34C998
square
#4D34C9 #C93466 #B0C934 #34C998
split-complementary
#4D34C9 #C99834 #66C934
monochromatic
#281B68 #3A2798 #4D34C9 #7763D7 #A194E3

Accessibility & contrast

On white

7.92
#4D34C9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#4D34C9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D34C9
7.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D34C9#FFFFFF#000000##FFFFFF
##4D34C91.007.922.657.92
#FFFFFF7.921.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056CD
Deuteranopia (green-blind)
#004CC6
Tritanopia (blue-blind)
#005E7C
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #4d34c9;
/* rgb */ color: rgb(77, 52, 201);
/* oklch */ color: oklch(45.8% 0.215 281.4);
Tailwind
colors: {
  custom: {
    50: '#8e6fdb',
    500: '#4d34c9',
    950: '#000000',
  },
}
SCSS
$custom: #4d34c9;
$custom-light: #8e6fdb;
$custom-dark: #000000;
JSON
{
  "hex": "#4d34c9",
  "rgb": {
    "r": 77,
    "g": 52,
    "b": 201
  },
  "hsl": {
    "h": 250.067,
    "s": 58.893,
    "l": 49.608
  },
  "oklch": {
    "l": 0.45796,
    "c": 0.21545,
    "h": 281.4
  },
  "luminance": 0.08251
}

Semantic roles & 50–950 ramp

primary
#4D34C9
secondary
#C3CE8A
accent
#E246C8
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #4D34C9

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

Preview Lab → · Contrast checker → · Palette generator →

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