#4C2FD2#4C2FD2

#4C2FD2 is a mid, highly saturated violet. Relative luminance 0.082; OKLCH L 46.0% C 0.231 H 280.4°. Best body text is #FFFFFF at 7.94:1 contrast (WCAG AA passes).

Color values

HEX#4C2FD2
RGBrgb(76, 47, 210)
HSLhsl(251, 64%, 50%)
HSVhsv(251, 78%, 82%)
CMYKcmyk(63.8%, 77.6%, 0%, 17.6%)
CIE-LABlab(34.44, 56.50, -78.56)
CIE-LCHlch(34.44, 96.76, 305.72°)
OKLaboklab(46% 0.0417 -0.2267)
OKLCHoklch(46% 0.231 280.4)
XYZxyz(15.6262, 8.2215, 61.7237)
Luminance0.0822 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2FD2 #B5D22F
analogous
#2F63D2 #4C2FD2 #9E2FD2
triadic
#4C2FD2 #D24C2F #2FD24C
tetradic
#4C2FD2 #D22F63 #B5D22F #2FD29E
square
#4C2FD2 #D22F63 #B5D22F #2FD29E
split-complementary
#4C2FD2 #D29E2F #63D22F
monochromatic
#27186F #3923A1 #4C2FD2 #7761DD #A394E8

Accessibility & contrast

On white

7.94
#4C2FD2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#4C2FD2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2FD2
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2FD2#FFFFFF#000000##FFFFFF
##4C2FD21.007.942.647.94
#FFFFFF7.941.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057D7
Deuteranopia (green-blind)
#004BCF
Tritanopia (blue-blind)
#006080
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #4c2fd2;
/* rgb */ color: rgb(76, 47, 210);
/* oklch */ color: oklch(46.0% 0.231 280.4);
Tailwind
colors: {
  custom: {
    50: '#8f6ce1',
    500: '#4c2fd2',
    950: '#000000',
  },
}
SCSS
$custom: #4c2fd2;
$custom-light: #8f6ce1;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2fd2",
  "rgb": {
    "r": 76,
    "g": 47,
    "b": 210
  },
  "hsl": {
    "h": 250.675,
    "s": 64.427,
    "l": 50.392
  },
  "oklch": {
    "l": 0.46001,
    "c": 0.23056,
    "h": 280.4
  },
  "luminance": 0.08223
}

Semantic roles & 50–950 ramp

primary
#4C2FD2
secondary
#C6D38A
accent
#E740CA
background
#F9F6FE
surface
#F2ECFC
border
#CCC7D5
text
#0E0715
muted
#7E7A84

Preview Lab

Preview with #4C2FD2

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

Preview Lab → · Contrast checker → · Palette generator →

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