#4D227E#4D227E

#4D227E is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.6% C 0.147 H 300.6°. Best body text is #FFFFFF at 11.38:1 contrast (WCAG AA passes).

Color values

HEX#4D227E
RGBrgb(77, 34, 126)
HSLhsl(268, 58%, 31%)
HSVhsv(268, 73%, 49%)
CMYKcmyk(38.9%, 73%, 0%, 50.6%)
CIE-LABlab(24.41, 39.29, -44.32)
CIE-LCHlch(24.41, 59.23, 311.56°)
OKLaboklab(36.58% 0.0748 -0.1264)
OKLCHoklch(36.58% 0.147 300.6)
XYZxyz(7.3976, 4.2281, 20.1610)
Luminance0.0423 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D227E #537E22
analogous
#22257E #4D227E #7B227E
triadic
#4D227E #7E4D22 #227E4D
tetradic
#4D227E #7E2225 #537E22 #227E7B
square
#4D227E #7E2225 #537E22 #227E7B
split-complementary
#4D227E #7E7B22 #257E22
monochromatic
#12081E #30154E #4D227E #6A2FAE #894CCF

Accessibility & contrast

On white

11.38
#4D227E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#4D227E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D227E
11.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D227E#FFFFFF#000000##FFFFFF
##4D227E1.0011.381.8511.38
#FFFFFF11.381.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A81
Deuteranopia (green-blind)
#00397C
Tritanopia (blue-blind)
#42384D
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4d227e;
/* rgb */ color: rgb(77, 34, 126);
/* oklch */ color: oklch(36.6% 0.147 300.6);
Tailwind
colors: {
  custom: {
    50: '#8461a4',
    500: '#4d227e',
    950: '#000000',
  },
}
SCSS
$custom: #4d227e;
$custom-light: #8461a4;
$custom-dark: #000000;
JSON
{
  "hex": "#4d227e",
  "rgb": {
    "r": 77,
    "g": 34,
    "b": 126
  },
  "hsl": {
    "h": 268.043,
    "s": 57.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.36581,
    "c": 0.14683,
    "h": 300.6
  },
  "luminance": 0.04228
}

Semantic roles & 50–950 ramp

primary
#4D227E
secondary
#81B14B
accent
#E14799
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4D227E

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

Preview Lab → · Contrast checker → · Palette generator →

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