#4C248A#4C248A

#4C248A is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.8% C 0.158 H 295.7°. Best body text is #FFFFFF at 10.90:1 contrast (WCAG AA passes).

Color values

HEX#4C248A
RGBrgb(76, 36, 138)
HSLhsl(264, 59%, 34%)
HSVhsv(264, 74%, 54%)
CMYKcmyk(44.9%, 73.9%, 0%, 45.9%)
CIE-LABlab(25.66, 41.33, -49.82)
CIE-LCHlch(25.66, 64.73, 309.68°)
OKLaboklab(37.76% 0.0687 -0.1426)
OKLCHoklch(37.76% 0.158 295.7)
XYZxyz(8.1976, 4.6330, 24.5022)
Luminance0.0463 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C248A #628A24
analogous
#242F8A #4C248A #7F248A
triadic
#4C248A #8A4C24 #248A4C
tetradic
#4C248A #8A242F #628A24 #248A7F
square
#4C248A #8A242F #628A24 #248A7F
split-complementary
#4C248A #8A7F24 #2F8A24
monochromatic
#170B29 #311759 #4C248A #6731BB #8756D3

Accessibility & contrast

On white

10.90
#4C248A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C248A
10.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C248A#FFFFFF#000000##FFFFFF
##4C248A1.0010.901.9310.90
#FFFFFF10.901.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.901.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4c248a;
/* rgb */ color: rgb(76, 36, 138);
/* oklch */ color: oklch(37.8% 0.158 295.7);
Tailwind
colors: {
  custom: {
    50: '#8463ad',
    500: '#4c248a',
    950: '#000000',
  },
}
SCSS
$custom: #4c248a;
$custom-light: #8463ad;
$custom-dark: #000000;
JSON
{
  "hex": "#4c248a",
  "rgb": {
    "r": 76,
    "g": 36,
    "b": 138
  },
  "hsl": {
    "h": 263.529,
    "s": 58.621,
    "l": 34.118
  },
  "oklch": {
    "l": 0.37757,
    "c": 0.15828,
    "h": 295.7
  },
  "luminance": 0.04633
}

Semantic roles & 50–950 ramp

primary
#4C248A
secondary
#90B753
accent
#E246A5
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0510
muted
#7C7A7F

Preview Lab

Preview with #4C248A

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

Preview Lab → · Contrast checker → · Palette generator →

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