#4C2AAF#4C2AAF

#4C2AAF is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.9% C 0.195 H 286.2°. Best body text is #FFFFFF at 9.30:1 contrast (WCAG AA passes).

Color values

HEX#4C2AAF
RGBrgb(76, 42, 175)
HSLhsl(255, 61%, 43%)
HSVhsv(255, 76%, 69%)
CMYKcmyk(56.6%, 76%, 0%, 31.4%)
CIE-LABlab(30.13, 48.80, -65.08)
CIE-LCHlch(30.13, 81.34, 306.86°)
OKLaboklab(41.94% 0.0544 -0.1873)
OKLCHoklch(41.94% 0.195 286.2)
XYZxyz(11.5440, 6.2869, 41.1543)
Luminance0.0629 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2AAF #8DAF2A
analogous
#2A4BAF #4C2AAF #8E2AAF
triadic
#4C2AAF #AF4C2A #2AAF4C
tetradic
#4C2AAF #AF2A4B #8DAF2A #2AAF8E
square
#4C2AAF #AF2A4B #8DAF2A #2AAF8E
split-complementary
#4C2AAF #AF8E2A #4BAF2A
monochromatic
#21124C #371E7E #4C2AAF #6844D2 #9075DE

Accessibility & contrast

On white

9.30
#4C2AAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#4C2AAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2AAF
9.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2AAF#FFFFFF#000000##FFFFFF
##4C2AAF1.009.302.269.30
#FFFFFF9.301.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB3
Deuteranopia (green-blind)
#0043AD
Tritanopia (blue-blind)
#1D4F6B
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4c2aaf;
/* rgb */ color: rgb(76, 42, 175);
/* oklch */ color: oklch(41.9% 0.195 286.2);
Tailwind
colors: {
  custom: {
    50: '#8968c8',
    500: '#4c2aaf',
    950: '#000000',
  },
}
SCSS
$custom: #4c2aaf;
$custom-light: #8968c8;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2aaf",
  "rgb": {
    "r": 76,
    "g": 42,
    "b": 175
  },
  "hsl": {
    "h": 255.338,
    "s": 61.29,
    "l": 42.549
  },
  "oklch": {
    "l": 0.41942,
    "c": 0.19509,
    "h": 286.2
  },
  "luminance": 0.06288
}

Semantic roles & 50–950 ramp

primary
#4C2AAF
secondary
#AFC66F
accent
#E443BB
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4C2AAF

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

Preview Lab → · Contrast checker → · Palette generator →

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