#4D227B#4D227B

#4D227B is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.3% C 0.143 H 301.7°. Best body text is #FFFFFF at 11.47:1 contrast (WCAG AA passes).

Color values

HEX#4D227B
RGBrgb(77, 34, 123)
HSLhsl(269, 57%, 31%)
HSVhsv(269, 72%, 48%)
CMYKcmyk(37.4%, 72.4%, 0%, 51.8%)
CIE-LABlab(24.17, 38.49, -42.81)
CIE-LCHlch(24.17, 57.57, 311.96°)
OKLaboklab(36.33% 0.0753 -0.1219)
OKLCHoklch(36.33% 0.143 301.7)
XYZxyz(7.2069, 4.1519, 19.1568)
Luminance0.0415 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D227B #507B22
analogous
#22237B #4D227B #79227B
triadic
#4D227B #7B4D22 #227B4D
tetradic
#4D227B #7B2223 #507B22 #227B79
square
#4D227B #7B2223 #507B22 #227B79
split-complementary
#4D227B #7B7922 #237B22
monochromatic
#11071B #2F154B #4D227B #6B2FAB #894ACD

Accessibility & contrast

On white

11.47
#4D227B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#4D227B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D227B
11.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D227B#FFFFFF#000000##FFFFFF
##4D227B1.0011.471.8311.47
#FFFFFF11.471.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397E
Deuteranopia (green-blind)
#003979
Tritanopia (blue-blind)
#43374C
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4d227b;
/* rgb */ color: rgb(77, 34, 123);
/* oklch */ color: oklch(36.3% 0.143 301.7);
Tailwind
colors: {
  custom: {
    50: '#8361a2',
    500: '#4d227b',
    950: '#000000',
  },
}
SCSS
$custom: #4d227b;
$custom-light: #8361a2;
$custom-dark: #000000;
JSON
{
  "hex": "#4d227b",
  "rgb": {
    "r": 77,
    "g": 34,
    "b": 123
  },
  "hsl": {
    "h": 268.989,
    "s": 56.688,
    "l": 30.784
  },
  "oklch": {
    "l": 0.3633,
    "c": 0.14332,
    "h": 301.7
  },
  "luminance": 0.04152
}

Semantic roles & 50–950 ramp

primary
#4D227B
secondary
#7EAE4B
accent
#E04896
background
#F8F5FA
surface
#EFEAF3
border
#CAC6CD
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4D227B

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

Preview Lab → · Contrast checker → · Palette generator →

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