#4D248C#4D248C

#4D248C is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.0% C 0.161 H 295.7°. Best body text is #FFFFFF at 10.79:1 contrast (WCAG AA passes).

Color values

HEX#4D248C
RGBrgb(77, 36, 140)
HSLhsl(264, 59%, 35%)
HSVhsv(264, 74%, 55%)
CMYKcmyk(45%, 74.3%, 0%, 45.1%)
CIE-LABlab(25.96, 42.07, -50.57)
CIE-LCHlch(25.96, 65.78, 309.75°)
OKLaboklab(38.05% 0.0698 -0.1448)
OKLCHoklch(38.05% 0.161 295.7)
XYZxyz(8.4238, 4.7328, 25.2755)
Luminance0.0473 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D248C #638C24
analogous
#242F8C #4D248C #81248C
triadic
#4D248C #8C4D24 #248C4D
tetradic
#4D248C #8C242F #638C24 #248C81
square
#4D248C #8C242F #638C24 #248C81
split-complementary
#4D248C #8C8124 #2F8C24
monochromatic
#170B2B #32175B #4D248C #6831BD #8857D4

Accessibility & contrast

On white

10.79
#4D248C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D248C
10.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D248C#FFFFFF#000000##FFFFFF
##4D248C1.0010.791.9510.79
#FFFFFF10.791.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8F
Deuteranopia (green-blind)
#003C8A
Tritanopia (blue-blind)
#3C3F56
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4d248c;
/* rgb */ color: rgb(77, 36, 140);
/* oklch */ color: oklch(38.0% 0.161 295.7);
Tailwind
colors: {
  custom: {
    50: '#8563ae',
    500: '#4d248c',
    950: '#000000',
  },
}
SCSS
$custom: #4d248c;
$custom-light: #8563ae;
$custom-dark: #000000;
JSON
{
  "hex": "#4d248c",
  "rgb": {
    "r": 77,
    "g": 36,
    "b": 140
  },
  "hsl": {
    "h": 263.654,
    "s": 59.091,
    "l": 34.51
  },
  "oklch": {
    "l": 0.38048,
    "c": 0.16071,
    "h": 295.7
  },
  "luminance": 0.04733
}

Semantic roles & 50–950 ramp

primary
#4D248C
secondary
#90B854
accent
#E246A4
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #4D248C

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

Preview Lab → · Contrast checker → · Palette generator →

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