#4C307C#4C307C

#4C307C is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.4% C 0.124 H 297.2°. Best body text is #FFFFFF at 10.39:1 contrast (WCAG AA passes).

Color values

HEX#4C307C
RGBrgb(76, 48, 124)
HSLhsl(262, 44%, 34%)
HSVhsv(262, 61%, 49%)
CMYKcmyk(38.7%, 61.3%, 0%, 51.4%)
CIE-LABlab(27.03, 30.62, -38.82)
CIE-LCHlch(27.03, 49.44, 308.27°)
OKLaboklab(38.4% 0.0566 -0.1103)
OKLCHoklch(38.4% 0.124 297.2)
XYZxyz(7.6746, 5.1055, 19.6460)
Luminance0.0511 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C307C #607C30
analogous
#303A7C #4C307C #72307C
triadic
#4C307C #7C4C30 #307C4C
tetradic
#4C307C #7C303A #607C30 #307C72
square
#4C307C #7C303A #607C30 #307C72
split-complementary
#4C307C #7C7230 #3A7C30
monochromatic
#160E24 #311F50 #4C307C #6741A8 #8764C3

Accessibility & contrast

On white

10.39
#4C307C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#4C307C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C307C
10.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C307C#FFFFFF#000000##FFFFFF
##4C307C1.0010.392.0210.39
#FFFFFF10.391.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#03407E
Deuteranopia (green-blind)
#123F7A
Tritanopia (blue-blind)
#414051
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4c307c;
/* rgb */ color: rgb(76, 48, 124);
/* oklch */ color: oklch(38.4% 0.124 297.2);
Tailwind
colors: {
  custom: {
    50: '#8269a2',
    500: '#4c307c',
    950: '#000000',
  },
}
SCSS
$custom: #4c307c;
$custom-light: #8269a2;
$custom-dark: #000000;
JSON
{
  "hex": "#4c307c",
  "rgb": {
    "r": 76,
    "g": 48,
    "b": 124
  },
  "hsl": {
    "h": 262.105,
    "s": 44.186,
    "l": 33.725
  },
  "oklch": {
    "l": 0.38397,
    "c": 0.12397,
    "h": 297.2
  },
  "luminance": 0.05106
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4C307C

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

Preview Lab → · Contrast checker → · Palette generator →

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