#4C209E#4C209E

#4C209E is a dark, vivid violet. Relative luminance 0.050; OKLCH L 39.1% C 0.185 H 291.1°. Best body text is #FFFFFF at 10.46:1 contrast (WCAG AA passes).

Color values

HEX#4C209E
RGBrgb(76, 32, 158)
HSLhsl(261, 66%, 37%)
HSVhsv(261, 80%, 62%)
CMYKcmyk(51.9%, 79.7%, 0%, 38%)
CIE-LABlab(26.84, 48.73, -60.21)
CIE-LCHlch(26.84, 77.46, 308.98°)
OKLaboklab(39.15% 0.0667 -0.173)
OKLCHoklch(39.15% 0.185 291.1)
XYZxyz(9.6668, 5.0377, 32.8042)
Luminance0.0504 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C209E #729E20
analogous
#20339E #4C209E #8B209E
triadic
#4C209E #9E4C20 #209E4C
tetradic
#4C209E #9E2033 #729E20 #209E8B
square
#4C209E #9E2033 #729E20 #209E8B
split-complementary
#4C209E #9E8B20 #339E20
monochromatic
#1B0B38 #34166B #4C209E #642AD1 #885BDE

Accessibility & contrast

On white

10.46
#4C209E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#4C209E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C209E
10.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C209E#FFFFFF#000000##FFFFFF
##4C209E1.0010.462.0110.46
#FFFFFF10.461.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A1
Deuteranopia (green-blind)
#003D9C
Tritanopia (blue-blind)
#2F445F
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4c209e;
/* rgb */ color: rgb(76, 32, 158);
/* oklch */ color: oklch(39.1% 0.185 291.1);
Tailwind
colors: {
  custom: {
    50: '#8761bc',
    500: '#4c209e',
    950: '#000000',
  },
}
SCSS
$custom: #4c209e;
$custom-light: #8761bc;
$custom-dark: #000000;
JSON
{
  "hex": "#4c209e",
  "rgb": {
    "r": 76,
    "g": 32,
    "b": 158
  },
  "hsl": {
    "h": 260.952,
    "s": 66.316,
    "l": 37.255
  },
  "oklch": {
    "l": 0.3915,
    "c": 0.18543,
    "h": 291.1
  },
  "luminance": 0.05038
}

Semantic roles & 50–950 ramp

primary
#4C209E
secondary
#9DC258
accent
#E93FAE
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0512
muted
#7D7A81

Preview Lab

Preview with #4C209E

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

Preview Lab → · Contrast checker → · Palette generator →

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