#4D2ECB#4D2ECB

#4D2ECB is a mid, highly saturated violet. Relative luminance 0.078; OKLCH L 45.3% C 0.223 H 281.8°. Best body text is #FFFFFF at 8.18:1 contrast (WCAG AA passes).

Color values

HEX#4D2ECB
RGBrgb(77, 46, 203)
HSLhsl(252, 63%, 49%)
HSVhsv(252, 77%, 80%)
CMYKcmyk(62.1%, 77.3%, 0%, 20.4%)
CIE-LABlab(33.65, 55.06, -75.79)
CIE-LCHlch(33.65, 93.68, 306.00°)
OKLaboklab(45.26% 0.0456 -0.2186)
OKLCHoklch(45.26% 0.223 281.8)
XYZxyz(14.8137, 7.8425, 57.2215)
Luminance0.0784 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2ECB #ACCB2E
analogous
#2E5ECB #4D2ECB #9C2ECB
triadic
#4D2ECB #CB4D2E #2ECB4D
tetradic
#4D2ECB #CB2E5E #ACCB2E #2ECB9C
square
#4D2ECB #CB2E5E #ACCB2E #2ECB9C
split-complementary
#4D2ECB #CB9C2E #5ECB2E
monochromatic
#271767 #3A2399 #4D2ECB #755CDA #9F8EE5

Accessibility & contrast

On white

8.18
#4D2ECB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#4D2ECB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2ECB
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2ECB#FFFFFF#000000##FFFFFF
##4D2ECB1.008.182.578.18
#FFFFFF8.181.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054CF
Deuteranopia (green-blind)
#0049C8
Tritanopia (blue-blind)
#005C7C
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #4d2ecb;
/* rgb */ color: rgb(77, 46, 203);
/* oklch */ color: oklch(45.3% 0.223 281.8);
Tailwind
colors: {
  custom: {
    50: '#8e6bdc',
    500: '#4d2ecb',
    950: '#000000',
  },
}
SCSS
$custom: #4d2ecb;
$custom-light: #8e6bdc;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2ecb",
  "rgb": {
    "r": 77,
    "g": 46,
    "b": 203
  },
  "hsl": {
    "h": 251.847,
    "s": 63.052,
    "l": 48.824
  },
  "oklch": {
    "l": 0.45262,
    "c": 0.22335,
    "h": 281.8
  },
  "luminance": 0.07844
}

Semantic roles & 50–950 ramp

primary
#4D2ECB
secondary
#C1D085
accent
#E642C6
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #4D2ECB

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

Preview Lab → · Contrast checker → · Palette generator →

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