#4C248B#4C248B

#4C248B is a dark, vivid violet. Relative luminance 0.047; OKLCH L 37.8% C 0.159 H 295.4°. Best body text is #FFFFFF at 10.87:1 contrast (WCAG AA passes).

Color values

HEX#4C248B
RGBrgb(76, 36, 139)
HSLhsl(263, 59%, 34%)
HSVhsv(263, 74%, 55%)
CMYKcmyk(45.3%, 74.1%, 0%, 45.5%)
CIE-LABlab(25.75, 41.61, -50.30)
CIE-LCHlch(25.75, 65.28, 309.60°)
OKLaboklab(37.85% 0.0685 -0.144)
OKLCHoklch(37.85% 0.159 295.4)
XYZxyz(8.2703, 4.6621, 24.8852)
Luminance0.0466 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C248B #638B24
analogous
#24308B #4C248B #80248B
triadic
#4C248B #8B4C24 #248B4C
tetradic
#4C248B #8B2430 #638B24 #248B80
square
#4C248B #8B2430 #638B24 #248B80
split-complementary
#4C248B #8B8024 #308B24
monochromatic
#170B2A #31175A #4C248B #6731BC #8756D3

Accessibility & contrast

On white

10.87
#4C248B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#4C248B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C248B
10.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C248B#FFFFFF#000000##FFFFFF
##4C248B1.0010.871.9310.87
#FFFFFF10.871.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8E
Deuteranopia (green-blind)
#003B89
Tritanopia (blue-blind)
#3B3E55
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4c248b;
/* rgb */ color: rgb(76, 36, 139);
/* oklch */ color: oklch(37.8% 0.159 295.4);
Tailwind
colors: {
  custom: {
    50: '#8463ae',
    500: '#4c248b',
    950: '#000000',
  },
}
SCSS
$custom: #4c248b;
$custom-light: #8463ae;
$custom-dark: #000000;
JSON
{
  "hex": "#4c248b",
  "rgb": {
    "r": 76,
    "g": 36,
    "b": 139
  },
  "hsl": {
    "h": 263.301,
    "s": 58.857,
    "l": 34.314
  },
  "oklch": {
    "l": 0.37845,
    "c": 0.15946,
    "h": 295.4
  },
  "luminance": 0.04662
}

Semantic roles & 50–950 ramp

primary
#4C248B
secondary
#91B753
accent
#E246A5
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #4C248B

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

Preview Lab → · Contrast checker → · Palette generator →

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