#4D228D#4D228D

#4D228D is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.9% C 0.164 H 295.8°. Best body text is #FFFFFF at 10.89:1 contrast (WCAG AA passes).

Color values

HEX#4D228D
RGBrgb(77, 34, 141)
HSLhsl(264, 61%, 34%)
HSVhsv(264, 76%, 55%)
CMYKcmyk(45.4%, 75.9%, 0%, 44.7%)
CIE-LABlab(25.70, 43.33, -51.62)
CIE-LCHlch(25.70, 67.40, 310.01°)
OKLaboklab(37.89% 0.0715 -0.1478)
OKLCHoklch(37.89% 0.164 295.8)
XYZxyz(8.4390, 4.6447, 25.6460)
Luminance0.0464 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D228D #628D22
analogous
#222D8D #4D228D #83228D
triadic
#4D228D #8D4D22 #228D4D
tetradic
#4D228D #8D222D #628D22 #228D83
square
#4D228D #8D222D #628D22 #228D83
split-complementary
#4D228D #8D8322 #2D8D22
monochromatic
#170A2A #32165C #4D228D #682EBE #8854D6

Accessibility & contrast

On white

10.89
#4D228D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#4D228D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D228D
10.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D228D#FFFFFF#000000##FFFFFF
##4D228D1.0010.891.9310.89
#FFFFFF10.891.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E90
Deuteranopia (green-blind)
#003B8B
Tritanopia (blue-blind)
#3B3E56
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4d228d;
/* rgb */ color: rgb(77, 34, 141);
/* oklch */ color: oklch(37.9% 0.164 295.8);
Tailwind
colors: {
  custom: {
    50: '#8562af',
    500: '#4d228d',
    950: '#000000',
  },
}
SCSS
$custom: #4d228d;
$custom-light: #8562af;
$custom-dark: #000000;
JSON
{
  "hex": "#4d228d",
  "rgb": {
    "r": 77,
    "g": 34,
    "b": 141
  },
  "hsl": {
    "h": 264.112,
    "s": 61.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.37891,
    "c": 0.16419,
    "h": 295.8
  },
  "luminance": 0.04645
}

Semantic roles & 50–950 ramp

primary
#4D228D
secondary
#90B951
accent
#E444A4
background
#F8F5FA
surface
#F0EAF5
border
#CBC6CF
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4D228D

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

Preview Lab → · Contrast checker → · Palette generator →

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