#4D30C9#4D30C9

#4D30C9 is a mid, highly saturated violet. Relative luminance 0.079; OKLCH L 45.3% C 0.219 H 281.8°. Best body text is #FFFFFF at 8.13:1 contrast (WCAG AA passes).

Color values

HEX#4D30C9
RGBrgb(77, 48, 201)
HSLhsl(251, 61%, 49%)
HSVhsv(251, 76%, 79%)
CMYKcmyk(61.7%, 76.1%, 0%, 21.2%)
CIE-LABlab(33.79, 53.51, -74.40)
CIE-LCHlch(33.79, 91.64, 305.73°)
OKLaboklab(45.3% 0.045 -0.2146)
OKLCHoklch(45.3% 0.219 281.8)
XYZxyz(14.6568, 7.9077, 56.0010)
Luminance0.0791 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D30C9 #ACC930
analogous
#305FC9 #4D30C9 #9A30C9
triadic
#4D30C9 #C94D30 #30C94D
tetradic
#4D30C9 #C9305F #ACC930 #30C99A
square
#4D30C9 #C9305F #ACC930 #30C99A
split-complementary
#4D30C9 #C99A30 #5FC930
monochromatic
#271866 #3A2498 #4D30C9 #755ED8 #9F8FE4

Accessibility & contrast

On white

8.13
#4D30C9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#4D30C9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D30C9
8.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D30C9#FFFFFF#000000##FFFFFF
##4D30C91.008.132.588.13
#FFFFFF8.131.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054CD
Deuteranopia (green-blind)
#004AC6
Tritanopia (blue-blind)
#005C7B
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #4d30c9;
/* rgb */ color: rgb(77, 48, 201);
/* oklch */ color: oklch(45.3% 0.219 281.8);
Tailwind
colors: {
  custom: {
    50: '#8e6cdb',
    500: '#4d30c9',
    950: '#000000',
  },
}
SCSS
$custom: #4d30c9;
$custom-light: #8e6cdb;
$custom-dark: #000000;
JSON
{
  "hex": "#4d30c9",
  "rgb": {
    "r": 77,
    "g": 48,
    "b": 201
  },
  "hsl": {
    "h": 251.373,
    "s": 61.446,
    "l": 48.824
  },
  "oklch": {
    "l": 0.45299,
    "c": 0.21926,
    "h": 281.8
  },
  "luminance": 0.07909
}

Semantic roles & 50–950 ramp

primary
#4D30C9
secondary
#C1CF86
accent
#E543C6
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #4D30C9

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

Preview Lab → · Contrast checker → · Palette generator →

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