#4C2FC9#4C2FC9

#4C2FC9 is a mid, highly saturated violet. Relative luminance 0.078; OKLCH L 45.1% C 0.220 H 281.6°. Best body text is #FFFFFF at 8.21:1 contrast (WCAG AA passes).

Color values

HEX#4C2FC9
RGBrgb(76, 47, 201)
HSLhsl(251, 62%, 49%)
HSVhsv(251, 77%, 79%)
CMYKcmyk(62.2%, 76.6%, 0%, 21.2%)
CIE-LABlab(33.53, 53.89, -74.83)
CIE-LCHlch(33.53, 92.21, 305.76°)
OKLaboklab(45.1% 0.0442 -0.2159)
OKLCHoklch(45.1% 0.22 281.6)
XYZxyz(14.5363, 7.7855, 55.9838)
Luminance0.0779 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2FC9 #ACC92F
analogous
#2F5FC9 #4C2FC9 #992FC9
triadic
#4C2FC9 #C94C2F #2FC94C
tetradic
#4C2FC9 #C92F5F #ACC92F #2FC999
square
#4C2FC9 #C92F5F #ACC92F #2FC999
split-complementary
#4C2FC9 #C9992F #5FC92F
monochromatic
#261866 #392397 #4C2FC9 #745CD9 #9E8EE5

Accessibility & contrast

On white

8.21
#4C2FC9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#4C2FC9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2FC9
8.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2FC9#FFFFFF#000000##FFFFFF
##4C2FC91.008.212.568.21
#FFFFFF8.211.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054CD
Deuteranopia (green-blind)
#0049C6
Tritanopia (blue-blind)
#005C7B
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #4c2fc9;
/* rgb */ color: rgb(76, 47, 201);
/* oklch */ color: oklch(45.1% 0.220 281.6);
Tailwind
colors: {
  custom: {
    50: '#8d6cdb',
    500: '#4c2fc9',
    950: '#000000',
  },
}
SCSS
$custom: #4c2fc9;
$custom-light: #8d6cdb;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2fc9",
  "rgb": {
    "r": 76,
    "g": 47,
    "b": 201
  },
  "hsl": {
    "h": 251.299,
    "s": 62.097,
    "l": 48.627
  },
  "oklch": {
    "l": 0.45097,
    "c": 0.22034,
    "h": 281.6
  },
  "luminance": 0.07787
}

Semantic roles & 50–950 ramp

primary
#4C2FC9
secondary
#C1CF85
accent
#E543C7
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #4C2FC9

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

Preview Lab → · Contrast checker → · Palette generator →

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