#4C2B8E#4C2B8E

#4C2B8E is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.1% C 0.154 H 293.2°. Best body text is #FFFFFF at 10.28:1 contrast (WCAG AA passes).

Color values

HEX#4C2B8E
RGBrgb(76, 43, 142)
HSLhsl(260, 54%, 36%)
HSVhsv(260, 70%, 56%)
CMYKcmyk(46.5%, 69.7%, 0%, 44.3%)
CIE-LABlab(27.34, 38.73, -49.56)
CIE-LCHlch(27.34, 62.90, 308.00°)
OKLaboklab(39.06% 0.0608 -0.1418)
OKLCHoklch(39.06% 0.154 293.2)
XYZxyz(8.7255, 5.2170, 26.1332)
Luminance0.0522 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2B8E #6D8E2B
analogous
#2B3C8E #4C2B8E #7E2B8E
triadic
#4C2B8E #8E4C2B #2B8E4C
tetradic
#4C2B8E #8E2B3C #6D8E2B #2B8E7E
square
#4C2B8E #8E2B3C #6D8E2B #2B8E7E
split-complementary
#4C2B8E #8E7E2B #3C8E2B
monochromatic
#1A0F30 #331D5F #4C2B8E #6539BD #8863D0

Accessibility & contrast

On white

10.28
#4C2B8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#4C2B8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2B8E
10.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2B8E#FFFFFF#000000##FFFFFF
##4C2B8E1.0010.282.0410.28
#FFFFFF10.281.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004291
Deuteranopia (green-blind)
#003F8C
Tritanopia (blue-blind)
#394359
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4c2b8e;
/* rgb */ color: rgb(76, 43, 142);
/* oklch */ color: oklch(39.1% 0.154 293.2);
Tailwind
colors: {
  custom: {
    50: '#8467b0',
    500: '#4c2b8e',
    950: '#000000',
  },
}
SCSS
$custom: #4c2b8e;
$custom-light: #8467b0;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2b8e",
  "rgb": {
    "r": 76,
    "g": 43,
    "b": 142
  },
  "hsl": {
    "h": 260,
    "s": 53.514,
    "l": 36.275
  },
  "oklch": {
    "l": 0.3906,
    "c": 0.15434,
    "h": 293.2
  },
  "luminance": 0.05217
}

Semantic roles & 50–950 ramp

primary
#4C2B8E
secondary
#99B65F
accent
#DD4BAC
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0B0611
muted
#7C7A80

Preview Lab

Preview with #4C2B8E

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

Preview Lab → · Contrast checker → · Palette generator →

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