#4D229E#4D229E

#4D229E is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.5% C 0.184 H 291.3°. Best body text is #FFFFFF at 10.30:1 contrast (WCAG AA passes).

Color values

HEX#4D229E
RGBrgb(77, 34, 158)
HSLhsl(261, 65%, 38%)
HSVhsv(261, 78%, 62%)
CMYKcmyk(51.3%, 78.5%, 0%, 38%)
CIE-LABlab(27.27, 47.97, -59.50)
CIE-LCHlch(27.27, 76.43, 308.87°)
OKLaboklab(39.47% 0.0668 -0.1709)
OKLCHoklch(39.47% 0.184 291.3)
XYZxyz(9.8024, 5.1901, 32.8264)
Luminance0.0519 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D229E #739E22
analogous
#22359E #4D229E #8B229E
triadic
#4D229E #9E4D22 #229E4D
tetradic
#4D229E #9E2235 #739E22 #229E8B
square
#4D229E #9E2235 #739E22 #229E8B
split-complementary
#4D229E #9E8B22 #359E22
monochromatic
#1C0C39 #34176C #4D229E #662DD0 #8A5EDC

Accessibility & contrast

On white

10.30
#4D229E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#4D229E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D229E
10.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D229E#FFFFFF#000000##FFFFFF
##4D229E1.0010.302.0410.30
#FFFFFF10.301.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A1
Deuteranopia (green-blind)
#003E9C
Tritanopia (blue-blind)
#31455F
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4d229e;
/* rgb */ color: rgb(77, 34, 158);
/* oklch */ color: oklch(39.5% 0.184 291.3);
Tailwind
colors: {
  custom: {
    50: '#8863bc',
    500: '#4d229e',
    950: '#000000',
  },
}
SCSS
$custom: #4d229e;
$custom-light: #8863bc;
$custom-dark: #000000;
JSON
{
  "hex": "#4d229e",
  "rgb": {
    "r": 77,
    "g": 34,
    "b": 158
  },
  "hsl": {
    "h": 260.806,
    "s": 64.583,
    "l": 37.647
  },
  "oklch": {
    "l": 0.39474,
    "c": 0.18351,
    "h": 291.3
  },
  "luminance": 0.0519
}

Semantic roles & 50–950 ramp

primary
#4D229E
secondary
#9EC15B
accent
#E840AE
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0512
muted
#7D7A81

Preview Lab

Preview with #4D229E

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

Preview Lab → · Contrast checker → · Palette generator →

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