#4C2DB3#4C2DB3

#4C2DB3 is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.7% C 0.197 H 285.1°. Best body text is #FFFFFF at 9.00:1 contrast (WCAG AA passes).

Color values

HEX#4C2DB3
RGBrgb(76, 45, 179)
HSLhsl(254, 60%, 44%)
HSVhsv(254, 75%, 70%)
CMYKcmyk(57.5%, 74.9%, 0%, 29.8%)
CIE-LABlab(31.04, 48.46, -65.97)
CIE-LCHlch(31.04, 81.85, 306.30°)
OKLaboklab(42.7% 0.0512 -0.19)
OKLCHoklch(42.7% 0.197 285.1)
XYZxyz(12.0531, 6.6672, 43.2909)
Luminance0.0667 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2DB3 #94B32D
analogous
#2D51B3 #4C2DB3 #8F2DB3
triadic
#4C2DB3 #B34C2D #2DB34C
tetradic
#4C2DB3 #B32D51 #94B32D #2DB38F
square
#4C2DB3 #B32D51 #94B32D #2DB38F
split-complementary
#4C2DB3 #B38F2D #51B32D
monochromatic
#221451 #372182 #4C2DB3 #6A4BD2 #937CDE

Accessibility & contrast

On white

9.00
#4C2DB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C2DB3
9.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2DB3#FFFFFF#000000##FFFFFF
##4C2DB31.009.002.339.00
#FFFFFF9.001.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB7
Deuteranopia (green-blind)
#0045B1
Tritanopia (blue-blind)
#16526E
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #4c2db3;
/* rgb */ color: rgb(76, 45, 179);
/* oklch */ color: oklch(42.7% 0.197 285.1);
Tailwind
colors: {
  custom: {
    50: '#8a6acb',
    500: '#4c2db3',
    950: '#000000',
  },
}
SCSS
$custom: #4c2db3;
$custom-light: #8a6acb;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2db3",
  "rgb": {
    "r": 76,
    "g": 45,
    "b": 179
  },
  "hsl": {
    "h": 253.881,
    "s": 59.821,
    "l": 43.922
  },
  "oklch": {
    "l": 0.42699,
    "c": 0.19674,
    "h": 285.1
  },
  "luminance": 0.06668
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4C2DB3

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

Preview Lab → · Contrast checker → · Palette generator →

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