#4C2FA5#4C2FA5

#4C2FA5 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.7% C 0.178 H 287.2°. Best body text is #FFFFFF at 9.30:1 contrast (WCAG AA passes).

Color values

HEX#4C2FA5
RGBrgb(76, 47, 165)
HSLhsl(255, 56%, 42%)
HSVhsv(255, 72%, 65%)
CMYKcmyk(53.9%, 71.5%, 0%, 35.3%)
CIE-LABlab(30.12, 43.27, -59.08)
CIE-LCHlch(30.12, 73.23, 306.22°)
OKLaboklab(41.66% 0.0527 -0.1698)
OKLCHoklch(41.66% 0.178 287.2)
XYZxyz(10.7865, 6.2856, 36.2349)
Luminance0.0629 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2FA5 #88A52F
analogous
#2F4DA5 #4C2FA5 #872FA5
triadic
#4C2FA5 #A54C2F #2FA54C
tetradic
#4C2FA5 #A52F4D #88A52F #2FA587
square
#4C2FA5 #A52F4D #88A52F #2FA587
split-complementary
#4C2FA5 #A5872F #4DA52F
monochromatic
#201446 #362175 #4C2FA5 #6747CB #8E76D8

Accessibility & contrast

On white

9.30
#4C2FA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#4C2FA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2FA5
9.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2FA5#FFFFFF#000000##FFFFFF
##4C2FA51.009.302.269.30
#FFFFFF9.301.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA9
Deuteranopia (green-blind)
#0044A3
Tritanopia (blue-blind)
#284E67
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4c2fa5;
/* rgb */ color: rgb(76, 47, 165);
/* oklch */ color: oklch(41.7% 0.178 287.2);
Tailwind
colors: {
  custom: {
    50: '#876ac1',
    500: '#4c2fa5',
    950: '#000000',
  },
}
SCSS
$custom: #4c2fa5;
$custom-light: #876ac1;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2fa5",
  "rgb": {
    "r": 76,
    "g": 47,
    "b": 165
  },
  "hsl": {
    "h": 254.746,
    "s": 55.66,
    "l": 41.569
  },
  "oklch": {
    "l": 0.41658,
    "c": 0.17779,
    "h": 287.2
  },
  "luminance": 0.06286
}

Semantic roles & 50–950 ramp

primary
#4C2FA5
secondary
#ACC070
accent
#DF49BA
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #4C2FA5

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

Preview Lab → · Contrast checker → · Palette generator →

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