#4D21C3#4D21C3

#4D21C3 is a dark, highly saturated violet. Relative luminance 0.066; OKLCH L 43.1% C 0.225 H 284.2°. Best body text is #FFFFFF at 9.05:1 contrast (WCAG AA passes).

Color values

HEX#4D21C3
RGBrgb(77, 33, 195)
HSLhsl(256, 71%, 45%)
HSVhsv(256, 83%, 76%)
CMYKcmyk(60.5%, 83.1%, 0%, 23.5%)
CIE-LABlab(30.89, 58.46, -75.67)
CIE-LCHlch(30.89, 95.62, 307.69°)
OKLaboklab(43.1% 0.0551 -0.2181)
OKLCHoklch(43.1% 0.225 284.2)
XYZxyz(13.4517, 6.6047, 52.1852)
Luminance0.0661 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D21C3 #97C321
analogous
#2146C3 #4D21C3 #9E21C3
triadic
#4D21C3 #C34D21 #21C34D
tetradic
#4D21C3 #C32146 #97C321 #21C39E
square
#4D21C3 #C32146 #97C321 #21C39E
split-complementary
#4D21C3 #C39E21 #46C321
monochromatic
#240F5A #38188F #4D21C3 #6D42DF #9577E8

Accessibility & contrast

On white

9.05
#4D21C3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D21C3
9.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D21C3#FFFFFF#000000##FFFFFF
##4D21C31.009.052.329.05
#FFFFFF9.051.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DC7
Deuteranopia (green-blind)
#0043C0
Tritanopia (blue-blind)
#005475
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #4d21c3;
/* rgb */ color: rgb(77, 33, 195);
/* oklch */ color: oklch(43.1% 0.225 284.2);
Tailwind
colors: {
  custom: {
    50: '#8e64d7',
    500: '#4d21c3',
    950: '#000000',
  },
}
SCSS
$custom: #4d21c3;
$custom-light: #8e64d7;
$custom-dark: #000000;
JSON
{
  "hex": "#4d21c3",
  "rgb": {
    "r": 77,
    "g": 33,
    "b": 195
  },
  "hsl": {
    "h": 256.296,
    "s": 71.053,
    "l": 44.706
  },
  "oklch": {
    "l": 0.43103,
    "c": 0.22499,
    "h": 284.2
  },
  "luminance": 0.06606
}

Semantic roles & 50–950 ramp

primary
#4D21C3
secondary
#B6CF71
accent
#EE3ABD
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0615
muted
#7E7A83

Preview Lab

Preview with #4D21C3

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

Preview Lab → · Contrast checker → · Palette generator →

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