#4C2FB4#4C2FB4

#4C2FB4 is a dark, vivid violet. Relative luminance 0.069; OKLCH L 43.1% C 0.196 H 284.6°. Best body text is #FFFFFF at 8.85:1 contrast (WCAG AA passes).

Color values

HEX#4C2FB4
RGBrgb(76, 47, 180)
HSLhsl(253, 59%, 45%)
HSVhsv(253, 74%, 71%)
CMYKcmyk(57.8%, 73.9%, 0%, 29.4%)
CIE-LABlab(31.50, 47.72, -65.81)
CIE-LCHlch(31.50, 81.29, 305.95°)
OKLaboklab(43.05% 0.0494 -0.1895)
OKLCHoklch(43.05% 0.196 284.6)
XYZxyz(12.2327, 6.8641, 43.8515)
Luminance0.0687 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2FB4 #97B42F
analogous
#2F54B4 #4C2FB4 #8F2FB4
triadic
#4C2FB4 #B44C2F #2FB44C
tetradic
#4C2FB4 #B42F54 #97B42F #2FB48F
square
#4C2FB4 #B42F54 #97B42F #2FB48F
split-complementary
#4C2FB4 #B48F2F #54B42F
monochromatic
#231653 #382283 #4C2FB4 #6B4FD1 #9480DE

Accessibility & contrast

On white

8.85
#4C2FB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#4C2FB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2FB4
8.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2FB4#FFFFFF#000000##FFFFFF
##4C2FB41.008.852.378.85
#FFFFFF8.851.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB8
Deuteranopia (green-blind)
#0046B2
Tritanopia (blue-blind)
#14546F
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #4c2fb4;
/* rgb */ color: rgb(76, 47, 180);
/* oklch */ color: oklch(43.1% 0.196 284.6);
Tailwind
colors: {
  custom: {
    50: '#8a6bcc',
    500: '#4c2fb4',
    950: '#000000',
  },
}
SCSS
$custom: #4c2fb4;
$custom-light: #8a6bcc;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2fb4",
  "rgb": {
    "r": 76,
    "g": 47,
    "b": 180
  },
  "hsl": {
    "h": 253.083,
    "s": 58.59,
    "l": 44.51
  },
  "oklch": {
    "l": 0.43051,
    "c": 0.19586,
    "h": 284.6
  },
  "luminance": 0.06865
}

Semantic roles & 50–950 ramp

primary
#4C2FB4
secondary
#B6C778
accent
#E246C0
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #4C2FB4

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

Preview Lab → · Contrast checker → · Palette generator →

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