#4D229C#4D229C

#4D229C is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.3% C 0.181 H 291.8°. Best body text is #FFFFFF at 10.37:1 contrast (WCAG AA passes).

Color values

HEX#4D229C
RGBrgb(77, 34, 156)
HSLhsl(261, 64%, 37%)
HSVhsv(261, 78%, 61%)
CMYKcmyk(50.6%, 78.2%, 0%, 38.8%)
CIE-LABlab(27.08, 47.42, -58.60)
CIE-LCHlch(27.08, 75.38, 308.98°)
OKLaboklab(39.28% 0.0674 -0.1683)
OKLCHoklch(39.28% 0.181 291.8)
XYZxyz(9.6316, 5.1218, 31.9272)
Luminance0.0512 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D229C #719C22
analogous
#22349C #4D229C #8A229C
triadic
#4D229C #9C4D22 #229C4D
tetradic
#4D229C #9C2234 #719C22 #229C8A
square
#4D229C #9C2234 #719C22 #229C8A
split-complementary
#4D229C #9C8A22 #349C22
monochromatic
#1B0C38 #34176A #4D229C #662DCE #895DDC

Accessibility & contrast

On white

10.37
#4D229C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#4D229C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D229C
10.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D229C#FFFFFF#000000##FFFFFF
##4D229C1.0010.372.0210.37
#FFFFFF10.371.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429F
Deuteranopia (green-blind)
#003D9A
Tritanopia (blue-blind)
#33445E
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4d229c;
/* rgb */ color: rgb(77, 34, 156);
/* oklch */ color: oklch(39.3% 0.181 291.8);
Tailwind
colors: {
  custom: {
    50: '#8762ba',
    500: '#4d229c',
    950: '#000000',
  },
}
SCSS
$custom: #4d229c;
$custom-light: #8762ba;
$custom-dark: #000000;
JSON
{
  "hex": "#4d229c",
  "rgb": {
    "r": 77,
    "g": 34,
    "b": 156
  },
  "hsl": {
    "h": 261.148,
    "s": 64.211,
    "l": 37.255
  },
  "oklch": {
    "l": 0.39283,
    "c": 0.18126,
    "h": 291.8
  },
  "luminance": 0.05122
}

Semantic roles & 50–950 ramp

primary
#4D229C
secondary
#9CC05A
accent
#E741AC
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0512
muted
#7D7A81

Preview Lab

Preview with #4D229C

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

Preview Lab → · Contrast checker → · Palette generator →

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