#4D227C#4D227C

#4D227C is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.4% C 0.144 H 301.3°. Best body text is #FFFFFF at 11.44:1 contrast (WCAG AA passes).

Color values

HEX#4D227C
RGBrgb(77, 34, 124)
HSLhsl(269, 57%, 31%)
HSVhsv(269, 73%, 49%)
CMYKcmyk(37.9%, 72.6%, 0%, 51.4%)
CIE-LABlab(24.25, 38.76, -43.32)
CIE-LCHlch(24.25, 58.13, 311.82°)
OKLaboklab(36.41% 0.0751 -0.1234)
OKLCHoklch(36.41% 0.144 301.3)
XYZxyz(7.2698, 4.1770, 19.4881)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D227C #517C22
analogous
#22247C #4D227C #7A227C
triadic
#4D227C #7C4D22 #227C4D
tetradic
#4D227C #7C2224 #517C22 #227C7A
square
#4D227C #7C2224 #517C22 #227C7A
split-complementary
#4D227C #7C7A22 #247C22
monochromatic
#11081C #2F154C #4D227C #6B2FAC #894BCE

Accessibility & contrast

On white

11.44
#4D227C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#4D227C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D227C
11.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D227C#FFFFFF#000000##FFFFFF
##4D227C1.0011.441.8411.44
#FFFFFF11.441.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397F
Deuteranopia (green-blind)
#00397A
Tritanopia (blue-blind)
#43374C
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4d227c;
/* rgb */ color: rgb(77, 34, 124);
/* oklch */ color: oklch(36.4% 0.144 301.3);
Tailwind
colors: {
  custom: {
    50: '#8361a3',
    500: '#4d227c',
    950: '#000000',
  },
}
SCSS
$custom: #4d227c;
$custom-light: #8361a3;
$custom-dark: #000000;
JSON
{
  "hex": "#4d227c",
  "rgb": {
    "r": 77,
    "g": 34,
    "b": 124
  },
  "hsl": {
    "h": 268.667,
    "s": 56.962,
    "l": 30.98
  },
  "oklch": {
    "l": 0.36413,
    "c": 0.14449,
    "h": 301.3
  },
  "luminance": 0.04177
}

Semantic roles & 50–950 ramp

primary
#4D227C
secondary
#7FAF4B
accent
#E04897
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4D227C

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

Preview Lab → · Contrast checker → · Palette generator →

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