#4D2268#4D2268

#4D2268 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 34.8% C 0.121 H 309.8°. Best body text is #FFFFFF at 12.04:1 contrast (WCAG AA passes).

Color values

HEX#4D2268
RGBrgb(77, 34, 104)
HSLhsl(277, 51%, 27%)
HSVhsv(277, 67%, 41%)
CMYKcmyk(26%, 67.3%, 0%, 59.2%)
CIE-LABlab(22.73, 33.59, -32.93)
CIE-LCHlch(22.73, 47.04, 315.57°)
OKLaboklab(34.84% 0.0775 -0.0929)
OKLCHoklch(34.84% 0.121 309.8)
XYZxyz(6.1308, 3.7214, 13.4894)
Luminance0.0372 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2268 #3D6822
analogous
#2A2268 #4D2268 #682260
triadic
#4D2268 #684D22 #22684D
tetradic
#4D2268 #682A22 #3D6822 #226068
square
#4D2268 #682A22 #3D6822 #226068
split-complementary
#4D2268 #606822 #22682A
monochromatic
#110817 #2B133A #4D2268 #6F3196 #9143C2

Accessibility & contrast

On white

12.04
#4D2268 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#4D2268 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2268
12.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2268#FFFFFF#000000##FFFFFF
##4D22681.0012.041.7412.04
#FFFFFF12.041.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00346A
Deuteranopia (green-blind)
#193766
Tritanopia (blue-blind)
#493041
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4d2268;
/* rgb */ color: rgb(77, 34, 104);
/* oklch */ color: oklch(34.8% 0.121 309.8);
Tailwind
colors: {
  custom: {
    50: '#816094',
    500: '#4d2268',
    950: '#000000',
  },
}
SCSS
$custom: #4d2268;
$custom-light: #816094;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2268",
  "rgb": {
    "r": 77,
    "g": 34,
    "b": 104
  },
  "hsl": {
    "h": 276.857,
    "s": 50.725,
    "l": 27.059
  },
  "oklch": {
    "l": 0.34841,
    "c": 0.12096,
    "h": 309.8
  },
  "luminance": 0.03721
}

Semantic roles & 50–950 ramp

primary
#4D2268
secondary
#6A9C4A
accent
#DA4E84
background
#F8F5F9
surface
#EFEAF1
border
#CAC6CB
text
#0B050D
muted
#7C797E

Preview Lab

Preview with #4D2268

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

Preview Lab → · Contrast checker → · Palette generator →

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