#4D30A6#4D30A6

#4D30A6 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.0% C 0.178 H 287.4°. Best body text is #FFFFFF at 9.17:1 contrast (WCAG AA passes).

Color values

HEX#4D30A6
RGBrgb(77, 48, 166)
HSLhsl(255, 55%, 42%)
HSVhsv(255, 71%, 65%)
CMYKcmyk(53.6%, 71.1%, 0%, 34.9%)
CIE-LABlab(30.51, 43.19, -59.04)
CIE-LCHlch(30.51, 73.16, 306.18°)
OKLaboklab(41.98% 0.0531 -0.1697)
OKLCHoklch(41.98% 0.178 287.4)
XYZxyz(10.9984, 6.4443, 36.7333)
Luminance0.0644 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D30A6 #89A630
analogous
#304EA6 #4D30A6 #8830A6
triadic
#4D30A6 #A64D30 #30A64D
tetradic
#4D30A6 #A6304E #89A630 #30A688
square
#4D30A6 #A6304E #89A630 #30A688
split-complementary
#4D30A6 #A68830 #4EA630
monochromatic
#211547 #372277 #4D30A6 #6949CA #9078D8

Accessibility & contrast

On white

9.17
#4D30A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#4D30A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D30A6
9.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D30A6#FFFFFF#000000##FFFFFF
##4D30A61.009.172.299.17
#FFFFFF9.171.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAA
Deuteranopia (green-blind)
#0045A4
Tritanopia (blue-blind)
#2A4F67
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4d30a6;
/* rgb */ color: rgb(77, 48, 166);
/* oklch */ color: oklch(42.0% 0.178 287.4);
Tailwind
colors: {
  custom: {
    50: '#886bc1',
    500: '#4d30a6',
    950: '#000000',
  },
}
SCSS
$custom: #4d30a6;
$custom-light: #886bc1;
$custom-dark: #000000;
JSON
{
  "hex": "#4d30a6",
  "rgb": {
    "r": 77,
    "g": 48,
    "b": 166
  },
  "hsl": {
    "h": 254.746,
    "s": 55.14,
    "l": 41.961
  },
  "oklch": {
    "l": 0.41983,
    "c": 0.17779,
    "h": 287.4
  },
  "luminance": 0.06445
}

Semantic roles & 50–950 ramp

primary
#4D30A6
secondary
#ADC071
accent
#DE49BA
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #4D30A6

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

Preview Lab → · Contrast checker → · Palette generator →

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