#4D229F#4D229F

#4D229F is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.6% C 0.185 H 291.1°. Best body text is #FFFFFF at 10.27:1 contrast (WCAG AA passes).

Color values

HEX#4D229F
RGBrgb(77, 34, 159)
HSLhsl(261, 65%, 38%)
HSVhsv(261, 79%, 62%)
CMYKcmyk(51.6%, 78.6%, 0%, 37.6%)
CIE-LABlab(27.37, 48.25, -59.96)
CIE-LCHlch(27.37, 76.96, 308.82°)
OKLaboklab(39.57% 0.0665 -0.1723)
OKLCHoklch(39.57% 0.185 291.1)
XYZxyz(9.8888, 5.2246, 33.2816)
Luminance0.0522 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D229F #749F22
analogous
#22359F #4D229F #8B229F
triadic
#4D229F #9F4D22 #229F4D
tetradic
#4D229F #9F2235 #749F22 #229F8B
square
#4D229F #9F2235 #749F22 #229F8B
split-complementary
#4D229F #9F8B22 #359F22
monochromatic
#1C0C3A #35176D #4D229F #652DD1 #8A5FDD

Accessibility & contrast

On white

10.27
#4D229F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#4D229F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D229F
10.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D229F#FFFFFF#000000##FFFFFF
##4D229F1.0010.272.0510.27
#FFFFFF10.271.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A2
Deuteranopia (green-blind)
#003E9D
Tritanopia (blue-blind)
#304560
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4d229f;
/* rgb */ color: rgb(77, 34, 159);
/* oklch */ color: oklch(39.6% 0.185 291.1);
Tailwind
colors: {
  custom: {
    50: '#8863bc',
    500: '#4d229f',
    950: '#000000',
  },
}
SCSS
$custom: #4d229f;
$custom-light: #8863bc;
$custom-dark: #000000;
JSON
{
  "hex": "#4d229f",
  "rgb": {
    "r": 77,
    "g": 34,
    "b": 159
  },
  "hsl": {
    "h": 260.64,
    "s": 64.767,
    "l": 37.843
  },
  "oklch": {
    "l": 0.3957,
    "c": 0.18464,
    "h": 291.1
  },
  "luminance": 0.05225
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4D229F

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

Preview Lab → · Contrast checker → · Palette generator →

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