#4C308D#4C308D

#4C308D is a dark, vivid violet. Relative luminance 0.056; OKLCH L 39.7% C 0.146 H 292.3°. Best body text is #FFFFFF at 9.93:1 contrast (WCAG AA passes).

Color values

HEX#4C308D
RGBrgb(76, 48, 141)
HSLhsl(258, 49%, 37%)
HSVhsv(258, 66%, 55%)
CMYKcmyk(46.1%, 66%, 0%, 44.7%)
CIE-LABlab(28.31, 35.58, -47.37)
CIE-LCHlch(28.31, 59.25, 306.91°)
OKLaboklab(39.73% 0.0555 -0.1354)
OKLCHoklch(39.73% 0.146 292.3)
XYZxyz(8.8438, 5.5732, 25.8039)
Luminance0.0557 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C308D #718D30
analogous
#30428D #4C308D #7B308D
triadic
#4C308D #8D4C30 #308D4C
tetradic
#4C308D #8D3042 #718D30 #308D7B
square
#4C308D #8D3042 #718D30 #308D7B
split-complementary
#4C308D #8D7B30 #428D30
monochromatic
#1B1132 #33205F #4C308D #6540BB #886BCD

Accessibility & contrast

On white

9.93
#4C308D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#4C308D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C308D
9.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C308D#FFFFFF#000000##FFFFFF
##4C308D1.009.932.119.93
#FFFFFF9.931.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004490
Deuteranopia (green-blind)
#00418B
Tritanopia (blue-blind)
#39465A
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4c308d;
/* rgb */ color: rgb(76, 48, 141);
/* oklch */ color: oklch(39.7% 0.146 292.3);
Tailwind
colors: {
  custom: {
    50: '#846aaf',
    500: '#4c308d',
    950: '#000000',
  },
}
SCSS
$custom: #4c308d;
$custom-light: #846aaf;
$custom-dark: #000000;
JSON
{
  "hex": "#4c308d",
  "rgb": {
    "r": 76,
    "g": 48,
    "b": 141
  },
  "hsl": {
    "h": 258.065,
    "s": 49.206,
    "l": 37.059
  },
  "oklch": {
    "l": 0.39729,
    "c": 0.14636,
    "h": 292.3
  },
  "luminance": 0.05573
}

Semantic roles & 50–950 ramp

primary
#4C308D
secondary
#9CB465
accent
#D94FAF
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4C308D

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

Preview Lab → · Contrast checker → · Palette generator →

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