#4C2FB5#4C2FB5

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

Color values

HEX#4C2FB5
RGBrgb(76, 47, 181)
HSLhsl(253, 59%, 45%)
HSVhsv(253, 74%, 71%)
CMYKcmyk(58%, 74%, 0%, 29%)
CIE-LABlab(31.59, 48.02, -66.25)
CIE-LCHlch(31.59, 81.82, 305.93°)
OKLaboklab(43.15% 0.0492 -0.1908)
OKLCHoklch(43.15% 0.197 284.5)
XYZxyz(12.3349, 6.9050, 44.3899)
Luminance0.0691 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2FB5 #98B52F
analogous
#2F55B5 #4C2FB5 #8F2FB5
triadic
#4C2FB5 #B54C2F #2FB54C
tetradic
#4C2FB5 #B52F55 #98B52F #2FB58F
square
#4C2FB5 #B52F55 #98B52F #2FB58F
split-complementary
#4C2FB5 #B58F2F #55B52F
monochromatic
#231654 #382284 #4C2FB5 #6C50D1 #9580DE

Accessibility & contrast

On white

8.82
#4C2FB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#4C2FB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2FB5
8.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2FB5#FFFFFF#000000##FFFFFF
##4C2FB51.008.822.388.82
#FFFFFF8.821.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB9
Deuteranopia (green-blind)
#0046B3
Tritanopia (blue-blind)
#12546F
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #4c2fb5;
/* rgb */ color: rgb(76, 47, 181);
/* oklch */ color: oklch(43.1% 0.197 284.5);
Tailwind
colors: {
  custom: {
    50: '#8a6bcc',
    500: '#4c2fb5',
    950: '#000000',
  },
}
SCSS
$custom: #4c2fb5;
$custom-light: #8a6bcc;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2fb5",
  "rgb": {
    "r": 76,
    "g": 47,
    "b": 181
  },
  "hsl": {
    "h": 252.985,
    "s": 58.772,
    "l": 44.706
  },
  "oklch": {
    "l": 0.43146,
    "c": 0.19705,
    "h": 284.5
  },
  "luminance": 0.06906
}

Semantic roles & 50–950 ramp

primary
#4C2FB5
secondary
#B6C779
accent
#E246C0
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #4C2FB5

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

Preview Lab → · Contrast checker → · Palette generator →

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