#4C2FB3#4C2FB3

#4C2FB3 is a dark, vivid violet. Relative luminance 0.068; OKLCH L 43.0% C 0.195 H 284.8°. Best body text is #FFFFFF at 8.88:1 contrast (WCAG AA passes).

Color values

HEX#4C2FB3
RGBrgb(76, 47, 179)
HSLhsl(253, 58%, 44%)
HSVhsv(253, 74%, 70%)
CMYKcmyk(57.5%, 73.7%, 0%, 29.8%)
CIE-LABlab(31.40, 47.43, -65.37)
CIE-LCHlch(31.40, 80.76, 305.96°)
OKLaboklab(42.96% 0.0497 -0.1882)
OKLCHoklch(42.96% 0.195 284.8)
XYZxyz(12.1312, 6.8235, 43.3169)
Luminance0.0682 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2FB3 #96B32F
analogous
#2F54B3 #4C2FB3 #8E2FB3
triadic
#4C2FB3 #B34C2F #2FB34C
tetradic
#4C2FB3 #B32F54 #96B32F #2FB38E
square
#4C2FB3 #B32F54 #96B32F #2FB38E
split-complementary
#4C2FB3 #B38E2F #54B32F
monochromatic
#231652 #372283 #4C2FB3 #6B4FD1 #947FDD

Accessibility & contrast

On white

8.88
#4C2FB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#4C2FB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2FB3
8.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2FB3#FFFFFF#000000##FFFFFF
##4C2FB31.008.882.368.88
#FFFFFF8.881.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB7
Deuteranopia (green-blind)
#0046B1
Tritanopia (blue-blind)
#16536E
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #4c2fb3;
/* rgb */ color: rgb(76, 47, 179);
/* oklch */ color: oklch(43.0% 0.195 284.8);
Tailwind
colors: {
  custom: {
    50: '#8a6bcb',
    500: '#4c2fb3',
    950: '#000000',
  },
}
SCSS
$custom: #4c2fb3;
$custom-light: #8a6bcb;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2fb3",
  "rgb": {
    "r": 76,
    "g": 47,
    "b": 179
  },
  "hsl": {
    "h": 253.182,
    "s": 58.407,
    "l": 44.314
  },
  "oklch": {
    "l": 0.42956,
    "c": 0.19467,
    "h": 284.8
  },
  "luminance": 0.06824
}

Semantic roles & 50–950 ramp

primary
#4C2FB3
secondary
#B5C678
accent
#E246BF
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #4C2FB3

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

Preview Lab → · Contrast checker → · Palette generator →

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