#4D2C98#4D2C98

#4D2C98 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.2% C 0.165 H 291.1°. Best body text is #FFFFFF at 9.86:1 contrast (WCAG AA passes).

Color values

HEX#4D2C98
RGBrgb(77, 44, 152)
HSLhsl(258, 55%, 38%)
HSVhsv(258, 71%, 60%)
CMYKcmyk(49.3%, 71.1%, 0%, 40.4%)
CIE-LABlab(28.50, 41.26, -53.82)
CIE-LCHlch(28.50, 67.82, 307.47°)
OKLaboklab(40.18% 0.0595 -0.1543)
OKLCHoklch(40.18% 0.165 291.1)
XYZxyz(9.6271, 5.6458, 30.2822)
Luminance0.0565 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2C98 #77982C
analogous
#2C4198 #4D2C98 #832C98
triadic
#4D2C98 #984D2C #2C984D
tetradic
#4D2C98 #982C41 #77982C #2C9883
square
#4D2C98 #982C41 #77982C #2C9883
split-complementary
#4D2C98 #98832C #41982C
monochromatic
#1D1139 #351E69 #4D2C98 #663BC6 #8B6AD4

Accessibility & contrast

On white

9.86
#4D2C98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#4D2C98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2C98
9.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2C98#FFFFFF#000000##FFFFFF
##4D2C981.009.862.139.86
#FFFFFF9.861.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459B
Deuteranopia (green-blind)
#004196
Tritanopia (blue-blind)
#35485F
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4d2c98;
/* rgb */ color: rgb(77, 44, 152);
/* oklch */ color: oklch(40.2% 0.165 291.1);
Tailwind
colors: {
  custom: {
    50: '#8668b7',
    500: '#4d2c98',
    950: '#000000',
  },
}
SCSS
$custom: #4d2c98;
$custom-light: #8668b7;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2c98",
  "rgb": {
    "r": 77,
    "g": 44,
    "b": 152
  },
  "hsl": {
    "h": 258.333,
    "s": 55.102,
    "l": 38.431
  },
  "oklch": {
    "l": 0.40176,
    "c": 0.16542,
    "h": 291.1
  },
  "luminance": 0.05646
}

Semantic roles & 50–950 ramp

primary
#4D2C98
secondary
#A1BB65
accent
#DE49B1
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4D2C98

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

Preview Lab → · Contrast checker → · Palette generator →

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