#4D248D#4D248D

#4D248D is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.1% C 0.162 H 295.5°. Best body text is #FFFFFF at 10.75:1 contrast (WCAG AA passes).

Color values

HEX#4D248D
RGBrgb(77, 36, 141)
HSLhsl(263, 59%, 35%)
HSVhsv(263, 74%, 55%)
CMYKcmyk(45.4%, 74.5%, 0%, 44.7%)
CIE-LABlab(26.05, 42.34, -51.05)
CIE-LCHlch(26.05, 66.32, 309.67°)
OKLaboklab(38.14% 0.0696 -0.1462)
OKLCHoklch(38.14% 0.162 295.5)
XYZxyz(8.4979, 4.7624, 25.6656)
Luminance0.0476 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D248D #648D24
analogous
#242F8D #4D248D #82248D
triadic
#4D248D #8D4D24 #248D4D
tetradic
#4D248D #8D242F #648D24 #248D82
square
#4D248D #8D242F #648D24 #248D82
split-complementary
#4D248D #8D8224 #2F8D24
monochromatic
#180B2B #32185C #4D248D #6830BE #8857D4

Accessibility & contrast

On white

10.75
#4D248D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#4D248D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D248D
10.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D248D#FFFFFF#000000##FFFFFF
##4D248D1.0010.751.9510.75
#FFFFFF10.751.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E90
Deuteranopia (green-blind)
#003C8B
Tritanopia (blue-blind)
#3B3F56
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4d248d;
/* rgb */ color: rgb(77, 36, 141);
/* oklch */ color: oklch(38.1% 0.162 295.5);
Tailwind
colors: {
  custom: {
    50: '#8563af',
    500: '#4d248d',
    950: '#000000',
  },
}
SCSS
$custom: #4d248d;
$custom-light: #8563af;
$custom-dark: #000000;
JSON
{
  "hex": "#4d248d",
  "rgb": {
    "r": 77,
    "g": 36,
    "b": 141
  },
  "hsl": {
    "h": 263.429,
    "s": 59.322,
    "l": 34.706
  },
  "oklch": {
    "l": 0.38137,
    "c": 0.16188,
    "h": 295.5
  },
  "luminance": 0.04763
}

Semantic roles & 50–950 ramp

primary
#4D248D
secondary
#91B854
accent
#E345A5
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #4D248D

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

Preview Lab → · Contrast checker → · Palette generator →

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