#4C307D#4C307D

#4C307D is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.5% C 0.125 H 296.9°. Best body text is #FFFFFF at 10.36:1 contrast (WCAG AA passes).

Color values

HEX#4C307D
RGBrgb(76, 48, 125)
HSLhsl(262, 45%, 34%)
HSVhsv(262, 62%, 49%)
CMYKcmyk(39.2%, 61.6%, 0%, 51%)
CIE-LABlab(27.10, 30.91, -39.33)
CIE-LCHlch(27.10, 50.03, 308.16°)
OKLaboklab(38.47% 0.0566 -0.1118)
OKLCHoklch(38.47% 0.125 296.9)
XYZxyz(7.7382, 5.1309, 19.9807)
Luminance0.0513 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C307D #617D30
analogous
#303B7D #4C307D #73307D
triadic
#4C307D #7D4C30 #307D4C
tetradic
#4C307D #7D303B #617D30 #307D73
square
#4C307D #7D303B #617D30 #307D73
split-complementary
#4C307D #7D7330 #3B7D30
monochromatic
#160E25 #311F51 #4C307D #6741A9 #8764C3

Accessibility & contrast

On white

10.36
#4C307D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#4C307D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C307D
10.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C307D#FFFFFF#000000##FFFFFF
##4C307D1.0010.362.0310.36
#FFFFFF10.361.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00407F
Deuteranopia (green-blind)
#103F7B
Tritanopia (blue-blind)
#404151
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4c307d;
/* rgb */ color: rgb(76, 48, 125);
/* oklch */ color: oklch(38.5% 0.125 296.9);
Tailwind
colors: {
  custom: {
    50: '#8269a3',
    500: '#4c307d',
    950: '#000000',
  },
}
SCSS
$custom: #4c307d;
$custom-light: #8269a3;
$custom-dark: #000000;
JSON
{
  "hex": "#4c307d",
  "rgb": {
    "r": 76,
    "g": 48,
    "b": 125
  },
  "hsl": {
    "h": 261.818,
    "s": 44.509,
    "l": 33.922
  },
  "oklch": {
    "l": 0.38472,
    "c": 0.12531,
    "h": 296.9
  },
  "luminance": 0.05131
}

Semantic roles & 50–950 ramp

primary
#4C307D
secondary
#8FAB5E
accent
#D454A5
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #4C307D

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

Preview Lab → · Contrast checker → · Palette generator →

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