#4C248C#4C248C

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

Color values

HEX#4C248C
RGBrgb(76, 36, 140)
HSLhsl(263, 59%, 35%)
HSVhsv(263, 74%, 55%)
CMYKcmyk(45.7%, 74.3%, 0%, 45.1%)
CIE-LABlab(25.84, 41.88, -50.78)
CIE-LCHlch(25.84, 65.82, 309.52°)
OKLaboklab(37.93% 0.0683 -0.1454)
OKLCHoklch(37.93% 0.161 295.2)
XYZxyz(8.3437, 4.6915, 25.2718)
Luminance0.0469 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C248C #648C24
analogous
#24308C #4C248C #80248C
triadic
#4C248C #8C4C24 #248C4C
tetradic
#4C248C #8C2430 #648C24 #248C80
square
#4C248C #8C2430 #648C24 #248C80
split-complementary
#4C248C #8C8024 #308C24
monochromatic
#170B2B #32175B #4C248C #6631BD #8757D4

Accessibility & contrast

On white

10.83
#4C248C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C248C
10.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C248C#FFFFFF#000000##FFFFFF
##4C248C1.0010.831.9410.83
#FFFFFF10.831.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.831.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4c248c;
/* rgb */ color: rgb(76, 36, 140);
/* oklch */ color: oklch(37.9% 0.161 295.2);
Tailwind
colors: {
  custom: {
    50: '#8463ae',
    500: '#4c248c',
    950: '#000000',
  },
}
SCSS
$custom: #4c248c;
$custom-light: #8463ae;
$custom-dark: #000000;
JSON
{
  "hex": "#4c248c",
  "rgb": {
    "r": 76,
    "g": 36,
    "b": 140
  },
  "hsl": {
    "h": 263.077,
    "s": 59.091,
    "l": 34.51
  },
  "oklch": {
    "l": 0.37934,
    "c": 0.16063,
    "h": 295.2
  },
  "luminance": 0.04692
}

Semantic roles & 50–950 ramp

primary
#4C248C
secondary
#91B854
accent
#E246A6
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #4C248C

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

Preview Lab → · Contrast checker → · Palette generator →

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