#4C248D#4C248D

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

Color values

HEX#4C248D
RGBrgb(76, 36, 141)
HSLhsl(263, 59%, 35%)
HSVhsv(263, 74%, 55%)
CMYKcmyk(46.1%, 74.5%, 0%, 44.7%)
CIE-LABlab(25.92, 42.16, -51.26)
CIE-LCHlch(25.92, 66.37, 309.44°)
OKLaboklab(38.02% 0.0681 -0.1468)
OKLCHoklch(38.02% 0.162 294.9)
XYZxyz(8.4178, 4.7211, 25.6619)
Luminance0.0472 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C248D #658D24
analogous
#24318D #4C248D #81248D
triadic
#4C248D #8D4C24 #248D4C
tetradic
#4C248D #8D2431 #658D24 #248D81
square
#4C248D #8D2431 #658D24 #248D81
split-complementary
#4C248D #8D8124 #318D24
monochromatic
#170B2B #32185C #4C248D #6630BE #8757D4

Accessibility & contrast

On white

10.80
#4C248D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#4C248D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C248D
10.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C248D#FFFFFF#000000##FFFFFF
##4C248D1.0010.801.9410.80
#FFFFFF10.801.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.801.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4c248d;
/* rgb */ color: rgb(76, 36, 141);
/* oklch */ color: oklch(38.0% 0.162 294.9);
Tailwind
colors: {
  custom: {
    50: '#8563af',
    500: '#4c248d',
    950: '#000000',
  },
}
SCSS
$custom: #4c248d;
$custom-light: #8563af;
$custom-dark: #000000;
JSON
{
  "hex": "#4c248d",
  "rgb": {
    "r": 76,
    "g": 36,
    "b": 141
  },
  "hsl": {
    "h": 262.857,
    "s": 59.322,
    "l": 34.706
  },
  "oklch": {
    "l": 0.38024,
    "c": 0.16181,
    "h": 294.9
  },
  "luminance": 0.04721
}

Semantic roles & 50–950 ramp

primary
#4C248D
secondary
#92B854
accent
#E345A7
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #4C248D

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

Preview Lab → · Contrast checker → · Palette generator →

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