#4D226F#4D226F

#4D226F is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.4% C 0.129 H 306.5°. Best body text is #FFFFFF at 11.84:1 contrast (WCAG AA passes).

Color values

HEX#4D226F
RGBrgb(77, 34, 111)
HSLhsl(274, 53%, 28%)
HSVhsv(274, 69%, 44%)
CMYKcmyk(30.6%, 69.4%, 0%, 56.5%)
CIE-LABlab(23.24, 35.36, -36.65)
CIE-LCHlch(23.24, 50.93, 313.98°)
OKLaboklab(35.37% 0.0769 -0.1038)
OKLCHoklch(35.37% 0.129 306.5)
XYZxyz(6.5012, 3.8696, 15.4403)
Luminance0.0387 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D226F #446F22
analogous
#26226F #4D226F #6F226A
triadic
#4D226F #6F4D22 #226F4D
tetradic
#4D226F #6F2622 #446F22 #226A6F
square
#4D226F #6F2622 #446F22 #226A6F
split-complementary
#4D226F #6A6F22 #226F26
monochromatic
#100717 #2C1440 #4D226F #6D309E #8D45C6

Accessibility & contrast

On white

11.84
#4D226F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#4D226F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D226F
11.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D226F#FFFFFF#000000##FFFFFF
##4D226F1.0011.841.7711.84
#FFFFFF11.841.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003671
Deuteranopia (green-blind)
#0F386D
Tritanopia (blue-blind)
#473345
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4d226f;
/* rgb */ color: rgb(77, 34, 111);
/* oklch */ color: oklch(35.4% 0.129 306.5);
Tailwind
colors: {
  custom: {
    50: '#826099',
    500: '#4d226f',
    950: '#000000',
  },
}
SCSS
$custom: #4d226f;
$custom-light: #826099;
$custom-dark: #000000;
JSON
{
  "hex": "#4d226f",
  "rgb": {
    "r": 77,
    "g": 34,
    "b": 111
  },
  "hsl": {
    "h": 273.506,
    "s": 53.103,
    "l": 28.431
  },
  "oklch": {
    "l": 0.35369,
    "c": 0.12922,
    "h": 306.5
  },
  "luminance": 0.0387
}

Semantic roles & 50–950 ramp

primary
#4D226F
secondary
#71A24A
accent
#DD4B8B
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #4D226F

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

Preview Lab → · Contrast checker → · Palette generator →

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