#4C299B#4C299B

#4C299B is a dark, vivid violet. Relative luminance 0.055; OKLCH L 39.9% C 0.173 H 290.4°. Best body text is #FFFFFF at 10.01:1 contrast (WCAG AA passes).

Color values

HEX#4C299B
RGBrgb(76, 41, 155)
HSLhsl(258, 58%, 38%)
HSVhsv(258, 74%, 61%)
CMYKcmyk(51%, 73.5%, 0%, 39.2%)
CIE-LABlab(28.08, 43.55, -56.34)
CIE-LCHlch(28.08, 71.21, 307.70°)
OKLaboklab(39.93% 0.0602 -0.1618)
OKLCHoklch(39.93% 0.173 290.4)
XYZxyz(9.6881, 5.4885, 31.5529)
Luminance0.0549 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C299B #789B29
analogous
#293F9B #4C299B #85299B
triadic
#4C299B #9B4C29 #299B4C
tetradic
#4C299B #9B293F #789B29 #299B85
square
#4C299B #9B293F #789B29 #299B85
split-complementary
#4C299B #9B8529 #3F9B29
monochromatic
#1D0F3A #341C6B #4C299B #6437CA #8A67D7

Accessibility & contrast

On white

10.01
#4C299B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#4C299B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C299B
10.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C299B#FFFFFF#000000##FFFFFF
##4C299B1.0010.012.1010.01
#FFFFFF10.011.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449E
Deuteranopia (green-blind)
#004099
Tritanopia (blue-blind)
#31475F
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4c299b;
/* rgb */ color: rgb(76, 41, 155);
/* oklch */ color: oklch(39.9% 0.173 290.4);
Tailwind
colors: {
  custom: {
    50: '#8666b9',
    500: '#4c299b',
    950: '#000000',
  },
}
SCSS
$custom: #4c299b;
$custom-light: #8666b9;
$custom-dark: #000000;
JSON
{
  "hex": "#4c299b",
  "rgb": {
    "r": 76,
    "g": 41,
    "b": 155
  },
  "hsl": {
    "h": 258.421,
    "s": 58.163,
    "l": 38.431
  },
  "oklch": {
    "l": 0.39935,
    "c": 0.1726,
    "h": 290.4
  },
  "luminance": 0.05489
}

Semantic roles & 50–950 ramp

primary
#4C299B
secondary
#A1BD63
accent
#E146B2
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4C299B

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

Preview Lab → · Contrast checker → · Palette generator →

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