#4C308F#4C308F

#4C308F is a dark, vivid violet. Relative luminance 0.056; OKLCH L 39.9% C 0.149 H 291.8°. Best body text is #FFFFFF at 9.87:1 contrast (WCAG AA passes).

Color values

HEX#4C308F
RGBrgb(76, 48, 143)
HSLhsl(258, 50%, 37%)
HSVhsv(258, 66%, 56%)
CMYKcmyk(46.9%, 66.4%, 0%, 43.9%)
CIE-LABlab(28.47, 36.17, -48.35)
CIE-LCHlch(28.47, 60.38, 306.80°)
OKLaboklab(39.89% 0.0553 -0.1383)
OKLCHoklch(39.89% 0.149 291.8)
XYZxyz(8.9940, 5.6333, 26.5947)
Luminance0.0563 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C308F #738F30
analogous
#30448F #4C308F #7B308F
triadic
#4C308F #8F4C30 #308F4C
tetradic
#4C308F #8F3044 #738F30 #308F7B
square
#4C308F #8F3044 #738F30 #308F7B
split-complementary
#4C308F #8F7B30 #448F30
monochromatic
#1B1133 #342161 #4C308F #643FBD #896CCE

Accessibility & contrast

On white

9.87
#4C308F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#4C308F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C308F
9.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C308F#FFFFFF#000000##FFFFFF
##4C308F1.009.872.139.87
#FFFFFF9.871.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004592
Deuteranopia (green-blind)
#00418D
Tritanopia (blue-blind)
#38475B
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4c308f;
/* rgb */ color: rgb(76, 48, 143);
/* oklch */ color: oklch(39.9% 0.149 291.8);
Tailwind
colors: {
  custom: {
    50: '#846ab1',
    500: '#4c308f',
    950: '#000000',
  },
}
SCSS
$custom: #4c308f;
$custom-light: #846ab1;
$custom-dark: #000000;
JSON
{
  "hex": "#4c308f",
  "rgb": {
    "r": 76,
    "g": 48,
    "b": 143
  },
  "hsl": {
    "h": 257.684,
    "s": 49.738,
    "l": 37.451
  },
  "oklch": {
    "l": 0.39894,
    "c": 0.14894,
    "h": 291.8
  },
  "luminance": 0.05634
}

Semantic roles & 50–950 ramp

primary
#4C308F
secondary
#9EB566
accent
#D94FB0
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0B0611
muted
#7C7A80

Preview Lab

Preview with #4C308F

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

Preview Lab → · Contrast checker → · Palette generator →

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