#4C309C#4C309C

#4C309C is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.0% C 0.165 H 288.8°. Best body text is #FFFFFF at 9.50:1 contrast (WCAG AA passes).

Color values

HEX#4C309C
RGBrgb(76, 48, 156)
HSLhsl(256, 53%, 40%)
HSVhsv(256, 69%, 61%)
CMYKcmyk(51.3%, 69.2%, 0%, 38.8%)
CIE-LABlab(29.54, 40.04, -54.57)
CIE-LCHlch(29.54, 67.69, 306.27°)
OKLaboklab(41% 0.0534 -0.1566)
OKLCHoklch(41% 0.165 288.8)
XYZxyz(10.0365, 6.0503, 32.0850)
Luminance0.0605 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C309C #809C30
analogous
#304A9C #4C309C #82309C
triadic
#4C309C #9C4C30 #309C4C
tetradic
#4C309C #9C304A #809C30 #309C82
square
#4C309C #9C304A #809C30 #309C82
split-complementary
#4C309C #9C8230 #4A9C30
monochromatic
#1E133E #35226D #4C309C #6544C5 #8C73D4

Accessibility & contrast

On white

9.50
#4C309C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#4C309C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C309C
9.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C309C#FFFFFF#000000##FFFFFF
##4C309C1.009.502.219.50
#FFFFFF9.501.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489F
Deuteranopia (green-blind)
#00439A
Tritanopia (blue-blind)
#304B62
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4c309c;
/* rgb */ color: rgb(76, 48, 156);
/* oklch */ color: oklch(41.0% 0.165 288.8);
Tailwind
colors: {
  custom: {
    50: '#866aba',
    500: '#4c309c',
    950: '#000000',
  },
}
SCSS
$custom: #4c309c;
$custom-light: #866aba;
$custom-dark: #000000;
JSON
{
  "hex": "#4c309c",
  "rgb": {
    "r": 76,
    "g": 48,
    "b": 156
  },
  "hsl": {
    "h": 255.556,
    "s": 52.941,
    "l": 40
  },
  "oklch": {
    "l": 0.40999,
    "c": 0.16545,
    "h": 288.8
  },
  "luminance": 0.06051
}

Semantic roles & 50–950 ramp

primary
#4C309C
secondary
#A7BC6C
accent
#DC4BB7
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #4C309C

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

Preview Lab → · Contrast checker → · Palette generator →

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