#4D229D#4D229D

#4D229D is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.4% C 0.182 H 291.6°. Best body text is #FFFFFF at 10.34:1 contrast (WCAG AA passes).

Color values

HEX#4D229D
RGBrgb(77, 34, 157)
HSLhsl(261, 64%, 37%)
HSVhsv(261, 78%, 62%)
CMYKcmyk(51%, 78.3%, 0%, 38.4%)
CIE-LABlab(27.17, 47.70, -59.05)
CIE-LCHlch(27.17, 75.91, 308.93°)
OKLaboklab(39.38% 0.0671 -0.1696)
OKLCHoklch(39.38% 0.182 291.6)
XYZxyz(9.7167, 5.1558, 32.3749)
Luminance0.0516 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D229D #729D22
analogous
#22349D #4D229D #8B229D
triadic
#4D229D #9D4D22 #229D4D
tetradic
#4D229D #9D2234 #729D22 #229D8B
square
#4D229D #9D2234 #729D22 #229D8B
split-complementary
#4D229D #9D8B22 #349D22
monochromatic
#1C0C38 #34176B #4D229D #662DCF #8A5DDC

Accessibility & contrast

On white

10.34
#4D229D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#4D229D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D229D
10.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D229D#FFFFFF#000000##FFFFFF
##4D229D1.0010.342.0310.34
#FFFFFF10.341.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A0
Deuteranopia (green-blind)
#003E9B
Tritanopia (blue-blind)
#32455F
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4d229d;
/* rgb */ color: rgb(77, 34, 157);
/* oklch */ color: oklch(39.4% 0.182 291.6);
Tailwind
colors: {
  custom: {
    50: '#8862bb',
    500: '#4d229d',
    950: '#000000',
  },
}
SCSS
$custom: #4d229d;
$custom-light: #8862bb;
$custom-dark: #000000;
JSON
{
  "hex": "#4d229d",
  "rgb": {
    "r": 77,
    "g": 34,
    "b": 157
  },
  "hsl": {
    "h": 260.976,
    "s": 64.398,
    "l": 37.451
  },
  "oklch": {
    "l": 0.39379,
    "c": 0.18239,
    "h": 291.6
  },
  "luminance": 0.05156
}

Semantic roles & 50–950 ramp

primary
#4D229D
secondary
#9DC15A
accent
#E740AD
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0512
muted
#7D7A81

Preview Lab

Preview with #4D229D

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

Preview Lab → · Contrast checker → · Palette generator →

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