#4D226A#4D226A

#4D226A is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.0% C 0.123 H 308.8°. Best body text is #FFFFFF at 11.98:1 contrast (WCAG AA passes).

Color values

HEX#4D226A
RGBrgb(77, 34, 106)
HSLhsl(276, 51%, 27%)
HSVhsv(276, 68%, 42%)
CMYKcmyk(27.4%, 67.9%, 0%, 58.4%)
CIE-LABlab(22.87, 34.09, -34.00)
CIE-LCHlch(22.87, 48.15, 315.08°)
OKLaboklab(34.99% 0.0774 -0.096)
OKLCHoklch(34.99% 0.123 308.8)
XYZxyz(6.2336, 3.7625, 14.0307)
Luminance0.0376 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D226A #3F6A22
analogous
#29226A #4D226A #6A2263
triadic
#4D226A #6A4D22 #226A4D
tetradic
#4D226A #6A2922 #3F6A22 #22636A
square
#4D226A #6A2922 #3F6A22 #22636A
split-complementary
#4D226A #636A22 #226A29
monochromatic
#110717 #2B133C #4D226A #6F3198 #9044C3

Accessibility & contrast

On white

11.98
#4D226A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#4D226A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D226A
11.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D226A#FFFFFF#000000##FFFFFF
##4D226A1.0011.981.7511.98
#FFFFFF11.981.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00356C
Deuteranopia (green-blind)
#163768
Tritanopia (blue-blind)
#493142
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4d226a;
/* rgb */ color: rgb(77, 34, 106);
/* oklch */ color: oklch(35.0% 0.123 308.8);
Tailwind
colors: {
  custom: {
    50: '#826095',
    500: '#4d226a',
    950: '#000000',
  },
}
SCSS
$custom: #4d226a;
$custom-light: #826095;
$custom-dark: #000000;
JSON
{
  "hex": "#4d226a",
  "rgb": {
    "r": 77,
    "g": 34,
    "b": 106
  },
  "hsl": {
    "h": 275.833,
    "s": 51.429,
    "l": 27.451
  },
  "oklch": {
    "l": 0.34989,
    "c": 0.12332,
    "h": 308.8
  },
  "luminance": 0.03762
}

Semantic roles & 50–950 ramp

primary
#4D226A
secondary
#6C9E4A
accent
#DB4D86
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050D
muted
#7C797E

Preview Lab

Preview with #4D226A

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

Preview Lab → · Contrast checker → · Palette generator →

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