#4D226E#4D226E

#4D226E is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.3% C 0.128 H 307.0°. Best body text is #FFFFFF at 11.87:1 contrast (WCAG AA passes).

Color values

HEX#4D226E
RGBrgb(77, 34, 110)
HSLhsl(274, 53%, 28%)
HSVhsv(274, 69%, 43%)
CMYKcmyk(30%, 69.1%, 0%, 56.9%)
CIE-LABlab(23.16, 35.11, -36.12)
CIE-LCHlch(23.16, 50.37, 314.18°)
OKLaboklab(35.29% 0.077 -0.1023)
OKLCHoklch(35.29% 0.128 307)
XYZxyz(6.4465, 3.8477, 15.1519)
Luminance0.0385 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D226E #436E22
analogous
#27226E #4D226E #6E2269
triadic
#4D226E #6E4D22 #226E4D
tetradic
#4D226E #6E2722 #436E22 #22696E
square
#4D226E #6E2722 #436E22 #22696E
split-complementary
#4D226E #696E22 #226E27
monochromatic
#100717 #2C143F #4D226E #6E309D #8E45C5

Accessibility & contrast

On white

11.87
#4D226E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D226E
11.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D226E#FFFFFF#000000##FFFFFF
##4D226E1.0011.871.7711.87
#FFFFFF11.871.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003670
Deuteranopia (green-blind)
#11386C
Tritanopia (blue-blind)
#483245
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4d226e;
/* rgb */ color: rgb(77, 34, 110);
/* oklch */ color: oklch(35.3% 0.128 307.0);
Tailwind
colors: {
  custom: {
    50: '#826098',
    500: '#4d226e',
    950: '#000000',
  },
}
SCSS
$custom: #4d226e;
$custom-light: #826098;
$custom-dark: #000000;
JSON
{
  "hex": "#4d226e",
  "rgb": {
    "r": 77,
    "g": 34,
    "b": 110
  },
  "hsl": {
    "h": 273.947,
    "s": 52.778,
    "l": 28.235
  },
  "oklch": {
    "l": 0.35292,
    "c": 0.12803,
    "h": 307
  },
  "luminance": 0.03848
}

Semantic roles & 50–950 ramp

primary
#4D226E
secondary
#70A14A
accent
#DC4C8A
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #4D226E

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

Preview Lab → · Contrast checker → · Palette generator →

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