#4C307E#4C307E

#4C307E is a dark, vivid violet. Relative luminance 0.052; OKLCH L 38.5% C 0.127 H 296.5°. Best body text is #FFFFFF at 10.34:1 contrast (WCAG AA passes).

Color values

HEX#4C307E
RGBrgb(76, 48, 126)
HSLhsl(262, 45%, 34%)
HSVhsv(262, 62%, 49%)
CMYKcmyk(39.7%, 61.9%, 0%, 50.6%)
CIE-LABlab(27.18, 31.20, -39.85)
CIE-LCHlch(27.18, 50.61, 308.06°)
OKLaboklab(38.55% 0.0566 -0.1133)
OKLCHoklch(38.55% 0.127 296.5)
XYZxyz(7.8024, 5.1566, 20.3189)
Luminance0.0516 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C307E #627E30
analogous
#303B7E #4C307E #73307E
triadic
#4C307E #7E4C30 #307E4C
tetradic
#4C307E #7E303B #627E30 #307E73
square
#4C307E #7E303B #627E30 #307E73
split-complementary
#4C307E #7E7330 #3B7E30
monochromatic
#170E25 #311F52 #4C307E #6741AA #8764C4

Accessibility & contrast

On white

10.34
#4C307E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C307E
10.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C307E#FFFFFF#000000##FFFFFF
##4C307E1.0010.342.0310.34
#FFFFFF10.341.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004181
Deuteranopia (green-blind)
#0E3F7C
Tritanopia (blue-blind)
#404152
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4c307e;
/* rgb */ color: rgb(76, 48, 126);
/* oklch */ color: oklch(38.5% 0.127 296.5);
Tailwind
colors: {
  custom: {
    50: '#826aa4',
    500: '#4c307e',
    950: '#000000',
  },
}
SCSS
$custom: #4c307e;
$custom-light: #826aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#4c307e",
  "rgb": {
    "r": 76,
    "g": 48,
    "b": 126
  },
  "hsl": {
    "h": 261.538,
    "s": 44.828,
    "l": 34.118
  },
  "oklch": {
    "l": 0.38547,
    "c": 0.12664,
    "h": 296.5
  },
  "luminance": 0.05157
}

Semantic roles & 50–950 ramp

primary
#4C307E
secondary
#90AB5F
accent
#D553A6
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #4C307E

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

Preview Lab → · Contrast checker → · Palette generator →

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