#4C2FAE#4C2FAE

#4C2FAE is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.5% C 0.189 H 285.6°. Best body text is #FFFFFF at 9.03:1 contrast (WCAG AA passes).

Color values

HEX#4C2FAE
RGBrgb(76, 47, 174)
HSLhsl(254, 57%, 43%)
HSVhsv(254, 73%, 68%)
CMYKcmyk(56.3%, 73%, 0%, 31.8%)
CIE-LABlab(30.94, 45.95, -63.15)
CIE-LCHlch(30.94, 78.09, 306.04°)
OKLaboklab(42.49% 0.0508 -0.1817)
OKLCHoklch(42.49% 0.189 285.6)
XYZxyz(11.6347, 6.6249, 40.7018)
Luminance0.0663 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2FAE #91AE2F
analogous
#2F51AE #4C2FAE #8B2FAE
triadic
#4C2FAE #AE4C2F #2FAE4C
tetradic
#4C2FAE #AE2F51 #91AE2F #2FAE8B
square
#4C2FAE #AE2F51 #91AE2F #2FAE8B
split-complementary
#4C2FAE #AE8B2F #51AE2F
monochromatic
#22154E #37227E #4C2FAE #6A4CCF #927CDC

Accessibility & contrast

On white

9.03
#4C2FAE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#4C2FAE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2FAE
9.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2FAE#FFFFFF#000000##FFFFFF
##4C2FAE1.009.032.339.03
#FFFFFF9.031.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB2
Deuteranopia (green-blind)
#0045AC
Tritanopia (blue-blind)
#1E516C
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #4c2fae;
/* rgb */ color: rgb(76, 47, 174);
/* oklch */ color: oklch(42.5% 0.189 285.6);
Tailwind
colors: {
  custom: {
    50: '#896ac7',
    500: '#4c2fae',
    950: '#000000',
  },
}
SCSS
$custom: #4c2fae;
$custom-light: #896ac7;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2fae",
  "rgb": {
    "r": 76,
    "g": 47,
    "b": 174
  },
  "hsl": {
    "h": 253.701,
    "s": 57.466,
    "l": 43.333
  },
  "oklch": {
    "l": 0.42486,
    "c": 0.1887,
    "h": 285.6
  },
  "luminance": 0.06626
}

Semantic roles & 50–950 ramp

primary
#4C2FAE
secondary
#B2C475
accent
#E147BE
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0D0713
muted
#7D7A82

Preview Lab

Preview with #4C2FAE

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

Preview Lab → · Contrast checker → · Palette generator →

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