#4D34C8#4D34C8

#4D34C8 is a mid, highly saturated violet. Relative luminance 0.082; OKLCH L 45.7% C 0.214 H 281.5°. Best body text is #FFFFFF at 7.95:1 contrast (WCAG AA passes).

Color values

HEX#4D34C8
RGBrgb(77, 52, 200)
HSLhsl(250, 59%, 49%)
HSVhsv(250, 74%, 78%)
CMYKcmyk(61.5%, 74%, 0%, 21.6%)
CIE-LABlab(34.40, 51.20, -72.81)
CIE-LCHlch(34.40, 89.01, 305.12°)
OKLaboklab(45.7% 0.0427 -0.21)
OKLCHoklch(45.7% 0.214 281.5)
XYZxyz(14.7106, 8.2028, 55.4405)
Luminance0.0820 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D34C8 #AFC834
analogous
#3465C8 #4D34C8 #9734C8
triadic
#4D34C8 #C84D34 #34C84D
tetradic
#4D34C8 #C83465 #AFC834 #34C897
square
#4D34C8 #C83465 #AFC834 #34C897
split-complementary
#4D34C8 #C89734 #65C834
monochromatic
#281B67 #3A2797 #4D34C8 #7663D6 #A193E3

Accessibility & contrast

On white

7.95
#4D34C8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#4D34C8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D34C8
7.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D34C8#FFFFFF#000000##FFFFFF
##4D34C81.007.952.647.95
#FFFFFF7.951.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056CC
Deuteranopia (green-blind)
#004BC5
Tritanopia (blue-blind)
#005E7B
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #4d34c8;
/* rgb */ color: rgb(77, 52, 200);
/* oklch */ color: oklch(45.7% 0.214 281.5);
Tailwind
colors: {
  custom: {
    50: '#8d6fda',
    500: '#4d34c8',
    950: '#000000',
  },
}
SCSS
$custom: #4d34c8;
$custom-light: #8d6fda;
$custom-dark: #000000;
JSON
{
  "hex": "#4d34c8",
  "rgb": {
    "r": 77,
    "g": 52,
    "b": 200
  },
  "hsl": {
    "h": 250.135,
    "s": 58.73,
    "l": 49.412
  },
  "oklch": {
    "l": 0.457,
    "c": 0.21428,
    "h": 281.5
  },
  "luminance": 0.08204
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4D34C8

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

Preview Lab → · Contrast checker → · Palette generator →

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