#4D2FA8#4D2FA8

#4D2FA8 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.0% C 0.181 H 287.2°. Best body text is #FFFFFF at 9.18:1 contrast (WCAG AA passes).

Color values

HEX#4D2FA8
RGBrgb(77, 47, 168)
HSLhsl(255, 56%, 42%)
HSVhsv(255, 72%, 66%)
CMYKcmyk(54.2%, 72%, 0%, 34.1%)
CIE-LABlab(30.49, 44.32, -60.28)
CIE-LCHlch(30.49, 74.82, 306.33°)
OKLaboklab(42.03% 0.0536 -0.1733)
OKLCHoklch(42.03% 0.181 287.2)
XYZxyz(11.1429, 6.4374, 37.6936)
Luminance0.0644 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2FA8 #8AA82F
analogous
#2F4EA8 #4D2FA8 #8A2FA8
triadic
#4D2FA8 #A84D2F #2FA84D
tetradic
#4D2FA8 #A82F4E #8AA82F #2FA88A
square
#4D2FA8 #A82F4E #8AA82F #2FA88A
split-complementary
#4D2FA8 #A88A2F #4EA82F
monochromatic
#211448 #372278 #4D2FA8 #6948CC #9078D9

Accessibility & contrast

On white

9.18
#4D2FA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#4D2FA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2FA8
9.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2FA8#FFFFFF#000000##FFFFFF
##4D2FA81.009.182.299.18
#FFFFFF9.181.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAC
Deuteranopia (green-blind)
#0044A6
Tritanopia (blue-blind)
#284F68
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4d2fa8;
/* rgb */ color: rgb(77, 47, 168);
/* oklch */ color: oklch(42.0% 0.181 287.2);
Tailwind
colors: {
  custom: {
    50: '#886ac3',
    500: '#4d2fa8',
    950: '#000000',
  },
}
SCSS
$custom: #4d2fa8;
$custom-light: #886ac3;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2fa8",
  "rgb": {
    "r": 77,
    "g": 47,
    "b": 168
  },
  "hsl": {
    "h": 254.876,
    "s": 56.279,
    "l": 42.157
  },
  "oklch": {
    "l": 0.42026,
    "c": 0.18138,
    "h": 287.2
  },
  "luminance": 0.06438
}

Semantic roles & 50–950 ramp

primary
#4D2FA8
secondary
#AEC171
accent
#E048BA
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0713
muted
#7D7A82

Preview Lab

Preview with #4D2FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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