#4C299E#4C299E

#4C299E is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.2% C 0.176 H 289.7°. Best body text is #FFFFFF at 9.91:1 contrast (WCAG AA passes).

Color values

HEX#4C299E
RGBrgb(76, 41, 158)
HSLhsl(258, 59%, 39%)
HSVhsv(258, 74%, 62%)
CMYKcmyk(51.9%, 74.1%, 0%, 38%)
CIE-LABlab(28.36, 44.41, -57.73)
CIE-LCHlch(28.36, 72.83, 307.57°)
OKLaboklab(40.21% 0.0595 -0.1658)
OKLCHoklch(40.21% 0.176 289.7)
XYZxyz(9.9432, 5.5906, 32.8963)
Luminance0.0559 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C299E #7B9E29
analogous
#29419E #4C299E #87299E
triadic
#4C299E #9E4C29 #299E4C
tetradic
#4C299E #9E2941 #7B9E29 #299E87
square
#4C299E #9E2941 #7B9E29 #299E87
split-complementary
#4C299E #9E8729 #419E29
monochromatic
#1D103D #351C6D #4C299E #6539CC #8A69D8

Accessibility & contrast

On white

9.91
#4C299E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#4C299E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C299E
9.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C299E#FFFFFF#000000##FFFFFF
##4C299E1.009.912.129.91
#FFFFFF9.911.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A1
Deuteranopia (green-blind)
#00409C
Tritanopia (blue-blind)
#2F4861
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4c299e;
/* rgb */ color: rgb(76, 41, 158);
/* oklch */ color: oklch(40.2% 0.176 289.7);
Tailwind
colors: {
  custom: {
    50: '#8766bc',
    500: '#4c299e',
    950: '#000000',
  },
}
SCSS
$custom: #4c299e;
$custom-light: #8766bc;
$custom-dark: #000000;
JSON
{
  "hex": "#4c299e",
  "rgb": {
    "r": 76,
    "g": 41,
    "b": 158
  },
  "hsl": {
    "h": 257.949,
    "s": 58.794,
    "l": 39.02
  },
  "oklch": {
    "l": 0.40211,
    "c": 0.17617,
    "h": 289.7
  },
  "luminance": 0.05591
}

Semantic roles & 50–950 ramp

primary
#4C299E
secondary
#A4BF64
accent
#E246B3
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4C299E

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

Preview Lab → · Contrast checker → · Palette generator →

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