#4C2DB2#4C2DB2

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

Color values

HEX#4C2DB2
RGBrgb(76, 45, 178)
HSLhsl(254, 60%, 44%)
HSVhsv(254, 75%, 70%)
CMYKcmyk(57.3%, 74.7%, 0%, 30.2%)
CIE-LABlab(30.94, 48.16, -65.53)
CIE-LCHlch(30.94, 81.32, 306.32°)
OKLaboklab(42.6% 0.0514 -0.1887)
OKLCHoklch(42.6% 0.196 285.2)
XYZxyz(11.9523, 6.6269, 42.7602)
Luminance0.0663 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2DB2 #93B22D
analogous
#2D50B2 #4C2DB2 #8E2DB2
triadic
#4C2DB2 #B24C2D #2DB24C
tetradic
#4C2DB2 #B22D50 #93B22D #2DB28E
square
#4C2DB2 #B22D50 #93B22D #2DB28E
split-complementary
#4C2DB2 #B28E2D #50B22D
monochromatic
#221450 #372181 #4C2DB2 #6A4BD1 #927CDE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4C2DB2#FFFFFF#000000##FFFFFF
##4C2DB21.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)
#004CB6
Deuteranopia (green-blind)
#0045B0
Tritanopia (blue-blind)
#18526D
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #4c2db2;
/* rgb */ color: rgb(76, 45, 178);
/* oklch */ color: oklch(42.6% 0.196 285.2);
Tailwind
colors: {
  custom: {
    50: '#8a6aca',
    500: '#4c2db2',
    950: '#000000',
  },
}
SCSS
$custom: #4c2db2;
$custom-light: #8a6aca;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2db2",
  "rgb": {
    "r": 76,
    "g": 45,
    "b": 178
  },
  "hsl": {
    "h": 253.985,
    "s": 59.641,
    "l": 43.725
  },
  "oklch": {
    "l": 0.42604,
    "c": 0.19557,
    "h": 285.2
  },
  "luminance": 0.06628
}

Semantic roles & 50–950 ramp

primary
#4C2DB2
secondary
#B3C675
accent
#E345BE
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #4C2DB2

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

Preview Lab → · Contrast checker → · Palette generator →

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