#4D2CB2#4D2CB2

#4D2CB2 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.6% C 0.196 H 285.8°. Best body text is #FFFFFF at 9.06:1 contrast (WCAG AA passes).

Color values

HEX#4D2CB2
RGBrgb(77, 44, 178)
HSLhsl(255, 60%, 44%)
HSVhsv(255, 75%, 70%)
CMYKcmyk(56.7%, 75.3%, 0%, 30.2%)
CIE-LABlab(30.86, 48.81, -65.66)
CIE-LCHlch(30.86, 81.81, 306.63°)
OKLaboklab(42.57% 0.0536 -0.189)
OKLCHoklch(42.57% 0.196 285.8)
XYZxyz(11.9947, 6.5928, 42.7513)
Luminance0.0659 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2CB2 #91B22C
analogous
#2C4EB2 #4D2CB2 #902CB2
triadic
#4D2CB2 #B24D2C #2CB24D
tetradic
#4D2CB2 #B22C4E #91B22C #2CB290
square
#4D2CB2 #B22C4E #91B22C #2CB290
split-complementary
#4D2CB2 #B2902C #4EB22C
monochromatic
#231450 #382081 #4D2CB2 #6B49D2 #937ADE

Accessibility & contrast

On white

9.06
#4D2CB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#4D2CB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2CB2
9.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2CB2#FFFFFF#000000##FFFFFF
##4D2CB21.009.062.329.06
#FFFFFF9.061.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB6
Deuteranopia (green-blind)
#0045B0
Tritanopia (blue-blind)
#1C526D
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #4d2cb2;
/* rgb */ color: rgb(77, 44, 178);
/* oklch */ color: oklch(42.6% 0.196 285.8);
Tailwind
colors: {
  custom: {
    50: '#8a69ca',
    500: '#4d2cb2',
    950: '#000000',
  },
}
SCSS
$custom: #4d2cb2;
$custom-light: #8a69ca;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2cb2",
  "rgb": {
    "r": 77,
    "g": 44,
    "b": 178
  },
  "hsl": {
    "h": 254.776,
    "s": 60.36,
    "l": 43.529
  },
  "oklch": {
    "l": 0.4257,
    "c": 0.19649,
    "h": 285.8
  },
  "luminance": 0.06593
}

Semantic roles & 50–950 ramp

primary
#4D2CB2
secondary
#B2C673
accent
#E444BC
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4D2CB2

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

Preview Lab → · Contrast checker → · Palette generator →

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