#4C2DBA#4C2DBA

#4C2DBA is a dark, highly saturated violet. Relative luminance 0.070; OKLCH L 43.4% C 0.205 H 283.9°. Best body text is #FFFFFF at 8.78:1 contrast (WCAG AA passes).

Color values

HEX#4C2DBA
RGBrgb(76, 45, 186)
HSLhsl(253, 61%, 45%)
HSVhsv(253, 76%, 73%)
CMYKcmyk(59.1%, 75.8%, 0%, 27.1%)
CIE-LABlab(31.71, 50.50, -69.01)
CIE-LCHlch(31.71, 85.52, 306.19°)
OKLaboklab(43.38% 0.0494 -0.1989)
OKLCHoklch(43.38% 0.205 283.9)
XYZxyz(12.7791, 6.9576, 47.1144)
Luminance0.0696 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2DBA #9BBA2D
analogous
#2D55BA #4C2DBA #922DBA
triadic
#4C2DBA #BA4C2D #2DBA4C
tetradic
#4C2DBA #BA2D55 #9BBA2D #2DBA92
square
#4C2DBA #BA2D55 #9BBA2D #2DBA92
split-complementary
#4C2DBA #BA922D #55BA2D
monochromatic
#241557 #382189 #4C2DBA #6D50D5 #9681E0

Accessibility & contrast

On white

8.78
#4C2DBA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#4C2DBA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2DBA
8.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2DBA#FFFFFF#000000##FFFFFF
##4C2DBA1.008.782.398.78
#FFFFFF8.781.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FBE
Deuteranopia (green-blind)
#0046B7
Tritanopia (blue-blind)
#035572
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #4c2dba;
/* rgb */ color: rgb(76, 45, 186);
/* oklch */ color: oklch(43.4% 0.205 283.9);
Tailwind
colors: {
  custom: {
    50: '#8b6ad0',
    500: '#4c2dba',
    950: '#000000',
  },
}
SCSS
$custom: #4c2dba;
$custom-light: #8b6ad0;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2dba",
  "rgb": {
    "r": 76,
    "g": 45,
    "b": 186
  },
  "hsl": {
    "h": 253.191,
    "s": 61.039,
    "l": 45.294
  },
  "oklch": {
    "l": 0.43376,
    "c": 0.20492,
    "h": 283.9
  },
  "luminance": 0.06958
}

Semantic roles & 50–950 ramp

primary
#4C2DBA
secondary
#B8C979
accent
#E444C1
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #4C2DBA

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

Preview Lab → · Contrast checker → · Palette generator →

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