#4C248E#4C248E

#4C248E is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.1% C 0.163 H 294.6°. Best body text is #FFFFFF at 10.77:1 contrast (WCAG AA passes).

Color values

HEX#4C248E
RGBrgb(76, 36, 142)
HSLhsl(263, 60%, 35%)
HSVhsv(263, 75%, 56%)
CMYKcmyk(46.5%, 74.6%, 0%, 44.3%)
CIE-LABlab(26.01, 42.44, -51.73)
CIE-LCHlch(26.01, 66.91, 309.36°)
OKLaboklab(38.11% 0.0678 -0.1482)
OKLCHoklch(38.11% 0.163 294.6)
XYZxyz(8.4925, 4.7510, 26.0555)
Luminance0.0475 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C248E #668E24
analogous
#24318E #4C248E #81248E
triadic
#4C248E #8E4C24 #248E4C
tetradic
#4C248E #8E2431 #668E24 #248E81
square
#4C248E #8E2431 #668E24 #248E81
split-complementary
#4C248E #8E8124 #318E24
monochromatic
#180B2C #32185D #4C248E #6630BF #8758D5

Accessibility & contrast

On white

10.77
#4C248E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C248E
10.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C248E#FFFFFF#000000##FFFFFF
##4C248E1.0010.771.9510.77
#FFFFFF10.771.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F91
Deuteranopia (green-blind)
#003C8C
Tritanopia (blue-blind)
#394057
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4c248e;
/* rgb */ color: rgb(76, 36, 142);
/* oklch */ color: oklch(38.1% 0.163 294.6);
Tailwind
colors: {
  custom: {
    50: '#8563b0',
    500: '#4c248e',
    950: '#000000',
  },
}
SCSS
$custom: #4c248e;
$custom-light: #8563b0;
$custom-dark: #000000;
JSON
{
  "hex": "#4c248e",
  "rgb": {
    "r": 76,
    "g": 36,
    "b": 142
  },
  "hsl": {
    "h": 262.642,
    "s": 59.551,
    "l": 34.902
  },
  "oklch": {
    "l": 0.38113,
    "c": 0.16298,
    "h": 294.6
  },
  "luminance": 0.04751
}

Semantic roles & 50–950 ramp

primary
#4C248E
secondary
#93B955
accent
#E345A7
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #4C248E

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

Preview Lab → · Contrast checker → · Palette generator →

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