#4C2FB2#4C2FB2

#4C2FB2 is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.9% C 0.193 H 284.9°. Best body text is #FFFFFF at 8.91:1 contrast (WCAG AA passes).

Color values

HEX#4C2FB2
RGBrgb(76, 47, 178)
HSLhsl(253, 58%, 44%)
HSVhsv(253, 74%, 70%)
CMYKcmyk(57.3%, 73.6%, 0%, 30.2%)
CIE-LABlab(31.31, 47.13, -64.93)
CIE-LCHlch(31.31, 80.23, 305.98°)
OKLaboklab(42.86% 0.0499 -0.1869)
OKLCHoklch(42.86% 0.193 284.9)
XYZxyz(12.0304, 6.7832, 42.7862)
Luminance0.0678 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2FB2 #95B22F
analogous
#2F54B2 #4C2FB2 #8E2FB2
triadic
#4C2FB2 #B24C2F #2FB24C
tetradic
#4C2FB2 #B22F54 #95B22F #2FB28E
square
#4C2FB2 #B22F54 #95B22F #2FB28E
split-complementary
#4C2FB2 #B28E2F #54B22F
monochromatic
#231551 #372282 #4C2FB2 #6B4ED0 #937EDD

Accessibility & contrast

On white

8.91
#4C2FB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#4C2FB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2FB2
8.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2FB2#FFFFFF#000000##FFFFFF
##4C2FB21.008.912.368.91
#FFFFFF8.911.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB6
Deuteranopia (green-blind)
#0046B0
Tritanopia (blue-blind)
#18536E
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #4c2fb2;
/* rgb */ color: rgb(76, 47, 178);
/* oklch */ color: oklch(42.9% 0.193 284.9);
Tailwind
colors: {
  custom: {
    50: '#896bca',
    500: '#4c2fb2',
    950: '#000000',
  },
}
SCSS
$custom: #4c2fb2;
$custom-light: #896bca;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2fb2",
  "rgb": {
    "r": 76,
    "g": 47,
    "b": 178
  },
  "hsl": {
    "h": 253.282,
    "s": 58.222,
    "l": 44.118
  },
  "oklch": {
    "l": 0.42862,
    "c": 0.19348,
    "h": 284.9
  },
  "luminance": 0.06784
}

Semantic roles & 50–950 ramp

primary
#4C2FB2
secondary
#B4C677
accent
#E146BF
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #4C2FB2

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

Preview Lab → · Contrast checker → · Palette generator →

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