#4D2A94#4D2A94

#4D2A94 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.5% C 0.163 H 292.5°. Best body text is #FFFFFF at 10.12:1 contrast (WCAG AA passes).

Color values

HEX#4D2A94
RGBrgb(77, 42, 148)
HSLhsl(260, 56%, 37%)
HSVhsv(260, 72%, 58%)
CMYKcmyk(48%, 71.6%, 0%, 42%)
CIE-LABlab(27.77, 41.19, -52.57)
CIE-LCHlch(27.77, 66.78, 308.08°)
OKLaboklab(39.55% 0.0623 -0.1506)
OKLCHoklch(39.55% 0.163 292.5)
XYZxyz(9.2323, 5.3715, 28.5616)
Luminance0.0537 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2A94 #71942A
analogous
#2A3C94 #4D2A94 #822A94
triadic
#4D2A94 #944D2A #2A944D
tetradic
#4D2A94 #942A3C #71942A #2A9482
square
#4D2A94 #942A3C #71942A #2A9482
split-complementary
#4D2A94 #94822A #3C942A
monochromatic
#1B0F35 #341C64 #4D2A94 #6638C4 #8965D3

Accessibility & contrast

On white

10.12
#4D2A94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#4D2A94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2A94
10.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2A94#FFFFFF#000000##FFFFFF
##4D2A941.0010.122.0710.12
#FFFFFF10.121.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004397
Deuteranopia (green-blind)
#003F92
Tritanopia (blue-blind)
#37455C
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4d2a94;
/* rgb */ color: rgb(77, 42, 148);
/* oklch */ color: oklch(39.5% 0.163 292.5);
Tailwind
colors: {
  custom: {
    50: '#8667b4',
    500: '#4d2a94',
    950: '#000000',
  },
}
SCSS
$custom: #4d2a94;
$custom-light: #8667b4;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2a94",
  "rgb": {
    "r": 77,
    "g": 42,
    "b": 148
  },
  "hsl": {
    "h": 259.811,
    "s": 55.789,
    "l": 37.255
  },
  "oklch": {
    "l": 0.39547,
    "c": 0.163,
    "h": 292.5
  },
  "luminance": 0.05372
}

Semantic roles & 50–950 ramp

primary
#4D2A94
secondary
#9CB960
accent
#DF49AD
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4D2A94

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

Preview Lab → · Contrast checker → · Palette generator →

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