#4D228A#4D228A

#4D228A is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.6% C 0.161 H 296.7°. Best body text is #FFFFFF at 10.99:1 contrast (WCAG AA passes).

Color values

HEX#4D228A
RGBrgb(77, 34, 138)
HSLhsl(265, 60%, 34%)
HSVhsv(265, 75%, 54%)
CMYKcmyk(44.2%, 75.4%, 0%, 45.9%)
CIE-LABlab(25.43, 42.52, -50.19)
CIE-LCHlch(25.43, 65.78, 310.27°)
OKLaboklab(37.62% 0.0722 -0.1436)
OKLCHoklch(37.62% 0.161 296.7)
XYZxyz(8.2188, 4.5566, 24.4863)
Luminance0.0456 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D228A #5F8A22
analogous
#222B8A #4D228A #81228A
triadic
#4D228A #8A4D22 #228A4D
tetradic
#4D228A #8A222B #5F8A22 #228A81
square
#4D228A #8A222B #5F8A22 #228A81
split-complementary
#4D228A #8A8122 #2B8A22
monochromatic
#160A28 #321659 #4D228A #682EBB #8852D4

Accessibility & contrast

On white

10.99
#4D228A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#4D228A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D228A
10.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D228A#FFFFFF#000000##FFFFFF
##4D228A1.0010.991.9110.99
#FFFFFF10.991.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8D
Deuteranopia (green-blind)
#003B88
Tritanopia (blue-blind)
#3D3D54
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4d228a;
/* rgb */ color: rgb(77, 34, 138);
/* oklch */ color: oklch(37.6% 0.161 296.7);
Tailwind
colors: {
  custom: {
    50: '#8561ad',
    500: '#4d228a',
    950: '#000000',
  },
}
SCSS
$custom: #4d228a;
$custom-light: #8561ad;
$custom-dark: #000000;
JSON
{
  "hex": "#4d228a",
  "rgb": {
    "r": 77,
    "g": 34,
    "b": 138
  },
  "hsl": {
    "h": 264.808,
    "s": 60.465,
    "l": 33.725
  },
  "oklch": {
    "l": 0.37622,
    "c": 0.16075,
    "h": 296.7
  },
  "luminance": 0.04557
}

Semantic roles & 50–950 ramp

primary
#4D228A
secondary
#8DB850
accent
#E444A2
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4D228A

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

Preview Lab → · Contrast checker → · Palette generator →

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