#4D228E#4D228E

#4D228E is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.0% C 0.165 H 295.5°. Best body text is #FFFFFF at 10.85:1 contrast (WCAG AA passes).

Color values

HEX#4D228E
RGBrgb(77, 34, 142)
HSLhsl(264, 61%, 35%)
HSVhsv(264, 76%, 56%)
CMYKcmyk(45.8%, 76.1%, 0%, 44.3%)
CIE-LABlab(25.79, 43.60, -52.10)
CIE-LCHlch(25.79, 67.93, 309.93°)
OKLaboklab(37.98% 0.0712 -0.1492)
OKLCHoklch(37.98% 0.165 295.5)
XYZxyz(8.5138, 4.6746, 26.0397)
Luminance0.0467 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D228E #638E22
analogous
#222D8E #4D228E #83228E
triadic
#4D228E #8E4D22 #228E4D
tetradic
#4D228E #8E222D #638E22 #228E83
square
#4D228E #8E222D #638E22 #228E83
split-complementary
#4D228E #8E8322 #2D8E22
monochromatic
#170A2B #32165D #4D228E #682EBF #8854D6

Accessibility & contrast

On white

10.85
#4D228E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#4D228E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D228E
10.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D228E#FFFFFF#000000##FFFFFF
##4D228E1.0010.851.9410.85
#FFFFFF10.851.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E91
Deuteranopia (green-blind)
#003B8C
Tritanopia (blue-blind)
#3B3F56
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4d228e;
/* rgb */ color: rgb(77, 34, 142);
/* oklch */ color: oklch(38.0% 0.165 295.5);
Tailwind
colors: {
  custom: {
    50: '#8562b0',
    500: '#4d228e',
    950: '#000000',
  },
}
SCSS
$custom: #4d228e;
$custom-light: #8562b0;
$custom-dark: #000000;
JSON
{
  "hex": "#4d228e",
  "rgb": {
    "r": 77,
    "g": 34,
    "b": 142
  },
  "hsl": {
    "h": 263.889,
    "s": 61.364,
    "l": 34.51
  },
  "oklch": {
    "l": 0.37981,
    "c": 0.16534,
    "h": 295.5
  },
  "luminance": 0.04675
}

Semantic roles & 50–950 ramp

primary
#4D228E
secondary
#90BA52
accent
#E443A4
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #4D228E

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

Preview Lab → · Contrast checker → · Palette generator →

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