#4C29A2#4C29A2

#4C29A2 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.6% C 0.181 H 288.9°. Best body text is #FFFFFF at 9.78:1 contrast (WCAG AA passes).

Color values

HEX#4C29A2
RGBrgb(76, 41, 162)
HSLhsl(257, 60%, 40%)
HSVhsv(257, 75%, 64%)
CMYKcmyk(53.1%, 74.7%, 0%, 36.5%)
CIE-LABlab(28.72, 45.56, -59.56)
CIE-LCHlch(28.72, 74.98, 307.42°)
OKLaboklab(40.58% 0.0585 -0.1712)
OKLCHoklch(40.58% 0.181 288.9)
XYZxyz(10.2931, 5.7305, 34.7392)
Luminance0.0573 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C29A2 #7FA229
analogous
#2943A2 #4C29A2 #8829A2
triadic
#4C29A2 #A24C29 #29A24C
tetradic
#4C29A2 #A22943 #7FA229 #29A288
square
#4C29A2 #A22943 #7FA229 #29A288
split-complementary
#4C29A2 #A28829 #43A229
monochromatic
#1E1040 #351D71 #4C29A2 #653BCD #8C6CDA

Accessibility & contrast

On white

9.78
#4C29A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#4C29A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C29A2
9.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C29A2#FFFFFF#000000##FFFFFF
##4C29A21.009.782.159.78
#FFFFFF9.781.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A5
Deuteranopia (green-blind)
#0041A0
Tritanopia (blue-blind)
#2B4A63
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4c29a2;
/* rgb */ color: rgb(76, 41, 162);
/* oklch */ color: oklch(40.6% 0.181 288.9);
Tailwind
colors: {
  custom: {
    50: '#8766bf',
    500: '#4c29a2',
    950: '#000000',
  },
}
SCSS
$custom: #4c29a2;
$custom-light: #8766bf;
$custom-dark: #000000;
JSON
{
  "hex": "#4c29a2",
  "rgb": {
    "r": 76,
    "g": 41,
    "b": 162
  },
  "hsl": {
    "h": 257.355,
    "s": 59.606,
    "l": 39.804
  },
  "oklch": {
    "l": 0.40582,
    "c": 0.18091,
    "h": 288.9
  },
  "luminance": 0.05731
}

Semantic roles & 50–950 ramp

primary
#4C29A2
secondary
#A6C067
accent
#E345B5
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4C29A2

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

Preview Lab → · Contrast checker → · Palette generator →

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