#4D2FAA#4D2FAA

#4D2FAA is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.2% C 0.184 H 286.8°. Best body text is #FFFFFF at 9.12:1 contrast (WCAG AA passes).

Color values

HEX#4D2FAA
RGBrgb(77, 47, 170)
HSLhsl(255, 57%, 43%)
HSVhsv(255, 72%, 67%)
CMYKcmyk(54.7%, 72.4%, 0%, 33.3%)
CIE-LABlab(30.67, 44.91, -61.18)
CIE-LCHlch(30.67, 75.90, 306.28°)
OKLaboklab(42.21% 0.0531 -0.1759)
OKLCHoklch(42.21% 0.184 286.8)
XYZxyz(11.3306, 6.5125, 38.6824)
Luminance0.0651 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2FAA #8CAA2F
analogous
#2F4FAA #4D2FAA #8A2FAA
triadic
#4D2FAA #AA4D2F #2FAA4D
tetradic
#4D2FAA #AA2F4F #8CAA2F #2FAA8A
square
#4D2FAA #AA2F4F #8CAA2F #2FAA8A
split-complementary
#4D2FAA #AA8A2F #4FAA2F
monochromatic
#22144A #37227A #4D2FAA #6949CD #9179DA

Accessibility & contrast

On white

9.12
#4D2FAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#4D2FAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2FAA
9.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2FAA#FFFFFF#000000##FFFFFF
##4D2FAA1.009.122.309.12
#FFFFFF9.121.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAE
Deuteranopia (green-blind)
#0045A8
Tritanopia (blue-blind)
#265069
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4d2faa;
/* rgb */ color: rgb(77, 47, 170);
/* oklch */ color: oklch(42.2% 0.184 286.8);
Tailwind
colors: {
  custom: {
    50: '#896ac4',
    500: '#4d2faa',
    950: '#000000',
  },
}
SCSS
$custom: #4d2faa;
$custom-light: #896ac4;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2faa",
  "rgb": {
    "r": 77,
    "g": 47,
    "b": 170
  },
  "hsl": {
    "h": 254.634,
    "s": 56.682,
    "l": 42.549
  },
  "oklch": {
    "l": 0.42209,
    "c": 0.1838,
    "h": 286.8
  },
  "luminance": 0.06513
}

Semantic roles & 50–950 ramp

primary
#4D2FAA
secondary
#AFC272
accent
#E048BB
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0D0713
muted
#7D7A82

Preview Lab

Preview with #4D2FAA

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

Preview Lab → · Contrast checker → · Palette generator →

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