#4D33A2#4D33A2

#4D33A2 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.1% C 0.169 H 287.5°. Best body text is #FFFFFF at 9.09:1 contrast (WCAG AA passes).

Color values

HEX#4D33A2
RGBrgb(77, 51, 162)
HSLhsl(254, 52%, 42%)
HSVhsv(254, 69%, 64%)
CMYKcmyk(52.5%, 68.5%, 0%, 36.5%)
CIE-LABlab(30.77, 40.32, -56.20)
CIE-LCHlch(30.77, 69.17, 305.66°)
OKLaboklab(42.06% 0.051 -0.1613)
OKLCHoklch(42.06% 0.169 287.5)
XYZxyz(10.7641, 6.5535, 34.8732)
Luminance0.0655 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D33A2 #88A233
analogous
#3351A2 #4D33A2 #8533A2
triadic
#4D33A2 #A24D33 #33A24D
tetradic
#4D33A2 #A23351 #88A233 #33A285
square
#4D33A2 #A23351 #88A233 #33A285
split-complementary
#4D33A2 #A28533 #51A233
monochromatic
#211645 #372473 #4D33A2 #684CC7 #907AD5

Accessibility & contrast

On white

9.09
#4D33A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#4D33A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D33A2
9.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D33A2#FFFFFF#000000##FFFFFF
##4D33A21.009.092.319.09
#FFFFFF9.091.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA5
Deuteranopia (green-blind)
#0045A0
Tritanopia (blue-blind)
#2D4F66
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4d33a2;
/* rgb */ color: rgb(77, 51, 162);
/* oklch */ color: oklch(42.1% 0.169 287.5);
Tailwind
colors: {
  custom: {
    50: '#876dbe',
    500: '#4d33a2',
    950: '#000000',
  },
}
SCSS
$custom: #4d33a2;
$custom-light: #876dbe;
$custom-dark: #000000;
JSON
{
  "hex": "#4d33a2",
  "rgb": {
    "r": 77,
    "g": 51,
    "b": 162
  },
  "hsl": {
    "h": 254.054,
    "s": 52.113,
    "l": 41.765
  },
  "oklch": {
    "l": 0.42063,
    "c": 0.16922,
    "h": 287.5
  },
  "luminance": 0.06554
}

Semantic roles & 50–950 ramp

primary
#4D33A2
secondary
#ACBE73
accent
#DC4CBA
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #4D33A2

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

Preview Lab → · Contrast checker → · Palette generator →

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