#4D2698#4D2698

#4D2698 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.4% C 0.172 H 292.2°. Best body text is #FFFFFF at 10.26:1 contrast (WCAG AA passes).

Color values

HEX#4D2698
RGBrgb(77, 38, 152)
HSLhsl(261, 60%, 37%)
HSVhsv(261, 75%, 60%)
CMYKcmyk(49.3%, 75%, 0%, 40.4%)
CIE-LABlab(27.38, 44.39, -55.65)
CIE-LCHlch(27.38, 71.19, 308.58°)
OKLaboklab(39.38% 0.0651 -0.1597)
OKLCHoklch(39.38% 0.172 292.2)
XYZxyz(9.4196, 5.2307, 30.2130)
Luminance0.0523 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2698 #719826
analogous
#263898 #4D2698 #862698
triadic
#4D2698 #984D26 #26984D
tetradic
#4D2698 #982638 #719826 #269886
square
#4D2698 #982638 #719826 #269886
split-complementary
#4D2698 #988626 #389826
monochromatic
#1B0E36 #341A67 #4D2698 #6632C9 #8961D7

Accessibility & contrast

On white

10.26
#4D2698 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#4D2698 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2698
10.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2698#FFFFFF#000000##FFFFFF
##4D26981.0010.262.0510.26
#FFFFFF10.261.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429B
Deuteranopia (green-blind)
#003E96
Tritanopia (blue-blind)
#35445D
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4d2698;
/* rgb */ color: rgb(77, 38, 152);
/* oklch */ color: oklch(39.4% 0.172 292.2);
Tailwind
colors: {
  custom: {
    50: '#8764b7',
    500: '#4d2698',
    950: '#000000',
  },
}
SCSS
$custom: #4d2698;
$custom-light: #8764b7;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2698",
  "rgb": {
    "r": 77,
    "g": 38,
    "b": 152
  },
  "hsl": {
    "h": 260.526,
    "s": 60,
    "l": 37.255
  },
  "oklch": {
    "l": 0.39382,
    "c": 0.17244,
    "h": 292.2
  },
  "luminance": 0.05231
}

Semantic roles & 50–950 ramp

primary
#4D2698
secondary
#9CBD5D
accent
#E345AD
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4D2698

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

Preview Lab → · Contrast checker → · Palette generator →

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