#4C2793#4C2793

#4C2793 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.9% C 0.165 H 292.7°. Best body text is #FFFFFF at 10.40:1 contrast (WCAG AA passes).

Color values

HEX#4C2793
RGBrgb(76, 39, 147)
HSLhsl(261, 58%, 36%)
HSVhsv(261, 73%, 58%)
CMYKcmyk(48.3%, 73.5%, 0%, 42.4%)
CIE-LABlab(27.00, 42.31, -53.21)
CIE-LCHlch(27.00, 67.98, 308.49°)
OKLaboklab(38.95% 0.0638 -0.1525)
OKLCHoklch(38.95% 0.165 292.7)
XYZxyz(8.9710, 5.0938, 28.1086)
Luminance0.0509 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2793 #6E9327
analogous
#273893 #4C2793 #822793
triadic
#4C2793 #934C27 #27934C
tetradic
#4C2793 #932738 #6E9327 #279382
square
#4C2793 #932738 #6E9327 #279382
split-complementary
#4C2793 #938227 #389327
monochromatic
#1A0D32 #331A63 #4C2793 #6534C3 #8860D5

Accessibility & contrast

On white

10.40
#4C2793 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#4C2793 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2793
10.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2793#FFFFFF#000000##FFFFFF
##4C27931.0010.402.0210.40
#FFFFFF10.401.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004196
Deuteranopia (green-blind)
#003E91
Tritanopia (blue-blind)
#36435A
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4c2793;
/* rgb */ color: rgb(76, 39, 147);
/* oklch */ color: oklch(38.9% 0.165 292.7);
Tailwind
colors: {
  custom: {
    50: '#8565b4',
    500: '#4c2793',
    950: '#000000',
  },
}
SCSS
$custom: #4c2793;
$custom-light: #8565b4;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2793",
  "rgb": {
    "r": 76,
    "g": 39,
    "b": 147
  },
  "hsl": {
    "h": 260.556,
    "s": 58.065,
    "l": 36.471
  },
  "oklch": {
    "l": 0.38948,
    "c": 0.16537,
    "h": 292.7
  },
  "luminance": 0.05094
}

Semantic roles & 50–950 ramp

primary
#4C2793
secondary
#9ABA5C
accent
#E147AC
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4C2793

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

Preview Lab → · Contrast checker → · Palette generator →

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