#4C309A#4C309A

#4C309A is a dark, vivid violet. Relative luminance 0.060; OKLCH L 40.8% C 0.163 H 289.3°. Best body text is #FFFFFF at 9.56:1 contrast (WCAG AA passes).

Color values

HEX#4C309A
RGBrgb(76, 48, 154)
HSLhsl(256, 52%, 40%)
HSVhsv(256, 69%, 60%)
CMYKcmyk(50.6%, 68.8%, 0%, 39.6%)
CIE-LABlab(29.37, 39.44, -53.63)
CIE-LCHlch(29.37, 66.57, 306.33°)
OKLaboklab(40.83% 0.0538 -0.1538)
OKLCHoklch(40.83% 0.163 289.3)
XYZxyz(9.8685, 5.9831, 31.2005)
Luminance0.0598 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C309A #7E9A30
analogous
#30499A #4C309A #81309A
triadic
#4C309A #9A4C30 #309A4C
tetradic
#4C309A #9A3049 #7E9A30 #309A81
square
#4C309A #9A3049 #7E9A30 #309A81
split-complementary
#4C309A #9A8130 #499A30
monochromatic
#1E133D #35216B #4C309A #6543C4 #8B72D3

Accessibility & contrast

On white

9.56
#4C309A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#4C309A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C309A
9.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C309A#FFFFFF#000000##FFFFFF
##4C309A1.009.562.209.56
#FFFFFF9.561.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479D
Deuteranopia (green-blind)
#004398
Tritanopia (blue-blind)
#314B61
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4c309a;
/* rgb */ color: rgb(76, 48, 154);
/* oklch */ color: oklch(40.8% 0.163 289.3);
Tailwind
colors: {
  custom: {
    50: '#856ab9',
    500: '#4c309a',
    950: '#000000',
  },
}
SCSS
$custom: #4c309a;
$custom-light: #856ab9;
$custom-dark: #000000;
JSON
{
  "hex": "#4c309a",
  "rgb": {
    "r": 76,
    "g": 48,
    "b": 154
  },
  "hsl": {
    "h": 255.849,
    "s": 52.475,
    "l": 39.608
  },
  "oklch": {
    "l": 0.40825,
    "c": 0.16295,
    "h": 289.3
  },
  "luminance": 0.05983
}

Semantic roles & 50–950 ramp

primary
#4C309A
secondary
#A6BB6B
accent
#DC4CB6
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0711
muted
#7D7A80

Preview Lab

Preview with #4C309A

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

Preview Lab → · Contrast checker → · Palette generator →

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