#4D2CA1#4D2CA1

#4D2CA1 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.0% C 0.176 H 289.1°. Best body text is #FFFFFF at 9.59:1 contrast (WCAG AA passes).

Color values

HEX#4D2CA1
RGBrgb(77, 44, 161)
HSLhsl(257, 57%, 40%)
HSVhsv(257, 73%, 63%)
CMYKcmyk(52.2%, 72.7%, 0%, 36.9%)
CIE-LABlab(29.29, 43.87, -58.01)
CIE-LCHlch(29.29, 72.73, 307.10°)
OKLaboklab(40.98% 0.0577 -0.1666)
OKLCHoklch(40.98% 0.176 289.1)
XYZxyz(10.3924, 5.9519, 34.3125)
Luminance0.0595 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2CA1 #80A12C
analogous
#2C46A1 #4D2CA1 #872CA1
triadic
#4D2CA1 #A14D2C #2CA14D
tetradic
#4D2CA1 #A12C46 #80A12C #2CA187
square
#4D2CA1 #A12C46 #80A12C #2CA187
split-complementary
#4D2CA1 #A1872C #46A12C
monochromatic
#1F1241 #361F71 #4D2CA1 #6740CB #8D70D8

Accessibility & contrast

On white

9.59
#4D2CA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#4D2CA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2CA1
9.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2CA1#FFFFFF#000000##FFFFFF
##4D2CA11.009.592.199.59
#FFFFFF9.591.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A4
Deuteranopia (green-blind)
#00429F
Tritanopia (blue-blind)
#2E4B63
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4d2ca1;
/* rgb */ color: rgb(77, 44, 161);
/* oklch */ color: oklch(41.0% 0.176 289.1);
Tailwind
colors: {
  custom: {
    50: '#8768be',
    500: '#4d2ca1',
    950: '#000000',
  },
}
SCSS
$custom: #4d2ca1;
$custom-light: #8768be;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2ca1",
  "rgb": {
    "r": 77,
    "g": 44,
    "b": 161
  },
  "hsl": {
    "h": 256.923,
    "s": 57.073,
    "l": 40.196
  },
  "oklch": {
    "l": 0.40982,
    "c": 0.17634,
    "h": 289.1
  },
  "luminance": 0.05952
}

Semantic roles & 50–950 ramp

primary
#4D2CA1
secondary
#A7BF6A
accent
#E047B5
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4D2CA1

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

Preview Lab → · Contrast checker → · Palette generator →

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