#4D227D#4D227D

#4D227D is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.5% C 0.146 H 301.0°. Best body text is #FFFFFF at 11.41:1 contrast (WCAG AA passes).

Color values

HEX#4D227D
RGBrgb(77, 34, 125)
HSLhsl(268, 57%, 31%)
HSVhsv(268, 73%, 49%)
CMYKcmyk(38.4%, 72.8%, 0%, 51%)
CIE-LABlab(24.33, 39.02, -43.82)
CIE-LCHlch(24.33, 58.68, 311.69°)
OKLaboklab(36.5% 0.075 -0.1249)
OKLCHoklch(36.5% 0.146 301)
XYZxyz(7.3334, 4.2025, 19.8229)
Luminance0.0420 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D227D #527D22
analogous
#22247D #4D227D #7A227D
triadic
#4D227D #7D4D22 #227D4D
tetradic
#4D227D #7D2224 #527D22 #227D7A
square
#4D227D #7D2224 #527D22 #227D7A
split-complementary
#4D227D #7D7A22 #247D22
monochromatic
#12081D #2F154D #4D227D #6B2FAD #894BCE

Accessibility & contrast

On white

11.41
#4D227D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D227D
11.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D227D#FFFFFF#000000##FFFFFF
##4D227D1.0011.411.8411.41
#FFFFFF11.411.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003980
Deuteranopia (green-blind)
#00397B
Tritanopia (blue-blind)
#42384D
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4d227d;
/* rgb */ color: rgb(77, 34, 125);
/* oklch */ color: oklch(36.5% 0.146 301.0);
Tailwind
colors: {
  custom: {
    50: '#8361a3',
    500: '#4d227d',
    950: '#000000',
  },
}
SCSS
$custom: #4d227d;
$custom-light: #8361a3;
$custom-dark: #000000;
JSON
{
  "hex": "#4d227d",
  "rgb": {
    "r": 77,
    "g": 34,
    "b": 125
  },
  "hsl": {
    "h": 268.352,
    "s": 57.233,
    "l": 31.176
  },
  "oklch": {
    "l": 0.36497,
    "c": 0.14566,
    "h": 301
  },
  "luminance": 0.04203
}

Semantic roles & 50–950 ramp

primary
#4D227D
secondary
#80B04B
accent
#E04798
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4D227D

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

Preview Lab → · Contrast checker → · Palette generator →

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