#4D228B#4D228B

#4D228B is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.7% C 0.162 H 296.4°. Best body text is #FFFFFF at 10.95:1 contrast (WCAG AA passes).

Color values

HEX#4D228B
RGBrgb(77, 34, 139)
HSLhsl(265, 61%, 34%)
HSVhsv(265, 76%, 55%)
CMYKcmyk(44.6%, 75.5%, 0%, 45.5%)
CIE-LABlab(25.52, 42.79, -50.67)
CIE-LCHlch(25.52, 66.32, 310.18°)
OKLaboklab(37.71% 0.072 -0.145)
OKLCHoklch(37.71% 0.162 296.4)
XYZxyz(8.2916, 4.5857, 24.8694)
Luminance0.0459 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D228B #608B22
analogous
#222C8B #4D228B #82228B
triadic
#4D228B #8B4D22 #228B4D
tetradic
#4D228B #8B222C #608B22 #228B82
square
#4D228B #8B222C #608B22 #228B82
split-complementary
#4D228B #8B8222 #2C8B22
monochromatic
#170A29 #32165A #4D228B #682EBC #8853D5

Accessibility & contrast

On white

10.95
#4D228B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D228B
10.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D228B#FFFFFF#000000##FFFFFF
##4D228B1.0010.951.9210.95
#FFFFFF10.951.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8E
Deuteranopia (green-blind)
#003B89
Tritanopia (blue-blind)
#3C3D55
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4d228b;
/* rgb */ color: rgb(77, 34, 139);
/* oklch */ color: oklch(37.7% 0.162 296.4);
Tailwind
colors: {
  custom: {
    50: '#8562ae',
    500: '#4d228b',
    950: '#000000',
  },
}
SCSS
$custom: #4d228b;
$custom-light: #8562ae;
$custom-dark: #000000;
JSON
{
  "hex": "#4d228b",
  "rgb": {
    "r": 77,
    "g": 34,
    "b": 139
  },
  "hsl": {
    "h": 264.571,
    "s": 60.694,
    "l": 33.922
  },
  "oklch": {
    "l": 0.37711,
    "c": 0.16189,
    "h": 296.4
  },
  "luminance": 0.04586
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4D228B

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

Preview Lab → · Contrast checker → · Palette generator →

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