#4C2EB8#4C2EB8

#4C2EB8 is a dark, highly saturated violet. Relative luminance 0.070; OKLCH L 43.3% C 0.202 H 284.1°. Best body text is #FFFFFF at 8.79:1 contrast (WCAG AA passes).

Color values

HEX#4C2EB8
RGBrgb(76, 46, 184)
HSLhsl(253, 60%, 45%)
HSVhsv(253, 75%, 72%)
CMYKcmyk(58.7%, 75%, 0%, 27.8%)
CIE-LABlab(31.69, 49.41, -67.86)
CIE-LCHlch(31.69, 83.94, 306.06°)
OKLaboklab(43.31% 0.0492 -0.1955)
OKLCHoklch(43.31% 0.202 284.1)
XYZxyz(12.6066, 6.9504, 46.0154)
Luminance0.0695 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2EB8 #9AB82E
analogous
#2E55B8 #4C2EB8 #912EB8
triadic
#4C2EB8 #B84C2E #2EB84C
tetradic
#4C2EB8 #B82E55 #9AB82E #2EB891
square
#4C2EB8 #B82E55 #9AB82E #2EB891
split-complementary
#4C2EB8 #B8912E #55B82E
monochromatic
#241656 #382287 #4C2EB8 #6C50D3 #9581DF

Accessibility & contrast

On white

8.79
#4C2EB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#4C2EB8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2EB8
8.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2EB8#FFFFFF#000000##FFFFFF
##4C2EB81.008.792.398.79
#FFFFFF8.791.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FBC
Deuteranopia (green-blind)
#0046B5
Tritanopia (blue-blind)
#0A5571
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #4c2eb8;
/* rgb */ color: rgb(76, 46, 184);
/* oklch */ color: oklch(43.3% 0.202 284.1);
Tailwind
colors: {
  custom: {
    50: '#8a6acf',
    500: '#4c2eb8',
    950: '#000000',
  },
}
SCSS
$custom: #4c2eb8;
$custom-light: #8a6acf;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2eb8",
  "rgb": {
    "r": 76,
    "g": 46,
    "b": 184
  },
  "hsl": {
    "h": 253.043,
    "s": 60,
    "l": 45.098
  },
  "oklch": {
    "l": 0.43306,
    "c": 0.2016,
    "h": 284.1
  },
  "luminance": 0.06951
}

Semantic roles & 50–950 ramp

primary
#4C2EB8
secondary
#B7C879
accent
#E345C1
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #4C2EB8

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

Preview Lab → · Contrast checker → · Palette generator →

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