#4C2FB1#4C2FB1

#4C2FB1 is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.8% C 0.192 H 285.1°. Best body text is #FFFFFF at 8.94:1 contrast (WCAG AA passes).

Color values

HEX#4C2FB1
RGBrgb(76, 47, 177)
HSLhsl(253, 58%, 44%)
HSVhsv(253, 73%, 69%)
CMYKcmyk(57.1%, 73.4%, 0%, 30.6%)
CIE-LABlab(31.21, 46.84, -64.48)
CIE-LCHlch(31.21, 79.70, 305.99°)
OKLaboklab(42.77% 0.0501 -0.1856)
OKLCHoklch(42.77% 0.192 285.1)
XYZxyz(11.9304, 6.7431, 42.2593)
Luminance0.0674 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2FB1 #94B12F
analogous
#2F53B1 #4C2FB1 #8D2FB1
triadic
#4C2FB1 #B14C2F #2FB14C
tetradic
#4C2FB1 #B12F53 #94B12F #2FB18D
square
#4C2FB1 #B12F53 #94B12F #2FB18D
split-complementary
#4C2FB1 #B18D2F #53B12F
monochromatic
#221550 #372281 #4C2FB1 #6A4DD0 #937EDD

Accessibility & contrast

On white

8.94
#4C2FB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#4C2FB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2FB1
8.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2FB1#FFFFFF#000000##FFFFFF
##4C2FB11.008.942.358.94
#FFFFFF8.941.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB5
Deuteranopia (green-blind)
#0045AF
Tritanopia (blue-blind)
#19536D
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #4c2fb1;
/* rgb */ color: rgb(76, 47, 177);
/* oklch */ color: oklch(42.8% 0.192 285.1);
Tailwind
colors: {
  custom: {
    50: '#896bc9',
    500: '#4c2fb1',
    950: '#000000',
  },
}
SCSS
$custom: #4c2fb1;
$custom-light: #896bc9;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2fb1",
  "rgb": {
    "r": 76,
    "g": 47,
    "b": 177
  },
  "hsl": {
    "h": 253.385,
    "s": 58.036,
    "l": 43.922
  },
  "oklch": {
    "l": 0.42768,
    "c": 0.19229,
    "h": 285.1
  },
  "luminance": 0.06744
}

Semantic roles & 50–950 ramp

primary
#4C2FB1
secondary
#B4C576
accent
#E147BF
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #4C2FB1

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

Preview Lab → · Contrast checker → · Palette generator →

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