#4D228C#4D228C

#4D228C is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.8% C 0.163 H 296.1°. Best body text is #FFFFFF at 10.92:1 contrast (WCAG AA passes).

Color values

HEX#4D228C
RGBrgb(77, 34, 140)
HSLhsl(264, 61%, 34%)
HSVhsv(264, 76%, 55%)
CMYKcmyk(45%, 75.7%, 0%, 45.1%)
CIE-LABlab(25.61, 43.06, -51.15)
CIE-LCHlch(25.61, 66.86, 310.09°)
OKLaboklab(37.8% 0.0717 -0.1464)
OKLCHoklch(37.8% 0.163 296.1)
XYZxyz(8.3650, 4.6151, 25.2559)
Luminance0.0461 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D228C #618C22
analogous
#222C8C #4D228C #82228C
triadic
#4D228C #8C4D22 #228C4D
tetradic
#4D228C #8C222C #618C22 #228C82
square
#4D228C #8C222C #618C22 #228C82
split-complementary
#4D228C #8C8222 #2C8C22
monochromatic
#170A2A #32165B #4D228C #682EBD #8853D5

Accessibility & contrast

On white

10.92
#4D228C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#4D228C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D228C
10.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D228C#FFFFFF#000000##FFFFFF
##4D228C1.0010.921.9210.92
#FFFFFF10.921.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8F
Deuteranopia (green-blind)
#003B8A
Tritanopia (blue-blind)
#3C3E55
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4d228c;
/* rgb */ color: rgb(77, 34, 140);
/* oklch */ color: oklch(37.8% 0.163 296.1);
Tailwind
colors: {
  custom: {
    50: '#8562ae',
    500: '#4d228c',
    950: '#000000',
  },
}
SCSS
$custom: #4d228c;
$custom-light: #8562ae;
$custom-dark: #000000;
JSON
{
  "hex": "#4d228c",
  "rgb": {
    "r": 77,
    "g": 34,
    "b": 140
  },
  "hsl": {
    "h": 264.34,
    "s": 60.92,
    "l": 34.118
  },
  "oklch": {
    "l": 0.37801,
    "c": 0.16305,
    "h": 296.1
  },
  "luminance": 0.04615
}

Semantic roles & 50–950 ramp

primary
#4D228C
secondary
#8FB951
accent
#E444A3
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4D228C

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

Preview Lab → · Contrast checker → · Palette generator →

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