#4C2FB0#4C2FB0

#4C2FB0 is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.7% C 0.191 H 285.3°. Best body text is #FFFFFF at 8.97:1 contrast (WCAG AA passes).

Color values

HEX#4C2FB0
RGBrgb(76, 47, 176)
HSLhsl(253, 58%, 44%)
HSVhsv(253, 73%, 69%)
CMYKcmyk(56.8%, 73.3%, 0%, 31%)
CIE-LABlab(31.12, 46.54, -64.04)
CIE-LCHlch(31.12, 79.16, 306.01°)
OKLaboklab(42.67% 0.0504 -0.1843)
OKLCHoklch(42.67% 0.191 285.3)
XYZxyz(11.8311, 6.7034, 41.7363)
Luminance0.0670 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2FB0 #93B02F
analogous
#2F52B0 #4C2FB0 #8C2FB0
triadic
#4C2FB0 #B04C2F #2FB04C
tetradic
#4C2FB0 #B02F52 #93B02F #2FB08C
square
#4C2FB0 #B02F52 #93B02F #2FB08C
split-complementary
#4C2FB0 #B08C2F #52B02F
monochromatic
#22154F #372280 #4C2FB0 #6A4DCF #927DDC

Accessibility & contrast

On white

8.97
#4C2FB0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#4C2FB0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2FB0
8.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2FB0#FFFFFF#000000##FFFFFF
##4C2FB01.008.972.348.97
#FFFFFF8.971.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB4
Deuteranopia (green-blind)
#0045AE
Tritanopia (blue-blind)
#1B526D
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #4c2fb0;
/* rgb */ color: rgb(76, 47, 176);
/* oklch */ color: oklch(42.7% 0.191 285.3);
Tailwind
colors: {
  custom: {
    50: '#896bc9',
    500: '#4c2fb0',
    950: '#000000',
  },
}
SCSS
$custom: #4c2fb0;
$custom-light: #896bc9;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2fb0",
  "rgb": {
    "r": 76,
    "g": 47,
    "b": 176
  },
  "hsl": {
    "h": 253.488,
    "s": 57.848,
    "l": 43.725
  },
  "oklch": {
    "l": 0.42674,
    "c": 0.19109,
    "h": 285.3
  },
  "luminance": 0.06704
}

Semantic roles & 50–950 ramp

primary
#4C2FB0
secondary
#B3C576
accent
#E147BE
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #4C2FB0

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

Preview Lab → · Contrast checker → · Palette generator →

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