#4C2FDA#4C2FDA

#4C2FDA is a mid, highly saturated violet. Relative luminance 0.086; OKLCH L 46.8% C 0.240 H 279.5°. Best body text is #FFFFFF at 7.70:1 contrast (WCAG AA passes).

Color values

HEX#4C2FDA
RGBrgb(76, 47, 218)
HSLhsl(250, 70%, 52%)
HSVhsv(250, 78%, 85%)
CMYKcmyk(65.1%, 78.4%, 0%, 14.5%)
CIE-LABlab(35.26, 58.80, -81.82)
CIE-LCHlch(35.26, 100.75, 305.70°)
OKLaboklab(46.82% 0.0395 -0.2362)
OKLCHoklch(46.82% 0.24 279.5)
XYZxyz(16.6479, 8.6301, 67.1045)
Luminance0.0863 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2FDA #BDDA2F
analogous
#2F68DA #4C2FDA #A12FDA
triadic
#4C2FDA #DA4C2F #2FDA4C
tetradic
#4C2FDA #DA2F68 #BDDA2F #2FDAA1
square
#4C2FDA #DA2F68 #BDDA2F #2FDAA1
split-complementary
#4C2FDA #DAA12F #68DA2F
monochromatic
#261679 #371FAD #4C2FDA #7963E3 #A597EC

Accessibility & contrast

On white

7.70
#4C2FDA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#4C2FDA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2FDA
7.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2FDA#FFFFFF#000000##FFFFFF
##4C2FDA1.007.702.737.70
#FFFFFF7.701.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059DF
Deuteranopia (green-blind)
#004CD7
Tritanopia (blue-blind)
#006385
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #4c2fda;
/* rgb */ color: rgb(76, 47, 218);
/* oklch */ color: oklch(46.8% 0.240 279.5);
Tailwind
colors: {
  custom: {
    50: '#916de7',
    500: '#4c2fda',
    950: '#000000',
  },
}
SCSS
$custom: #4c2fda;
$custom-light: #916de7;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2fda",
  "rgb": {
    "r": 76,
    "g": 47,
    "b": 218
  },
  "hsl": {
    "h": 250.175,
    "s": 69.796,
    "l": 51.961
  },
  "oklch": {
    "l": 0.46817,
    "c": 0.23953,
    "h": 279.5
  },
  "luminance": 0.08631
}

Semantic roles & 50–950 ramp

primary
#4C2FDA
secondary
#CBD88D
accent
#ED3BCF
background
#F9F6FE
surface
#F2ECFD
border
#CCC7D5
text
#0E0716
muted
#7E7A84

Preview Lab

Preview with #4C2FDA

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

Preview Lab → · Contrast checker → · Palette generator →

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