#4C2E8B#4C2E8B

#4C2E8B is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.3% C 0.147 H 293.3°. Best body text is #FFFFFF at 10.14:1 contrast (WCAG AA passes).

Color values

HEX#4C2E8B
RGBrgb(76, 46, 139)
HSLhsl(259, 50%, 36%)
HSVhsv(259, 67%, 55%)
CMYKcmyk(45.3%, 66.9%, 0%, 45.5%)
CIE-LABlab(27.72, 36.16, -47.09)
CIE-LCHlch(27.72, 59.37, 307.52°)
OKLaboklab(39.26% 0.058 -0.1346)
OKLCHoklch(39.26% 0.147 293.3)
XYZxyz(8.6164, 5.3543, 25.0006)
Luminance0.0536 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2E8B #6D8B2E
analogous
#2E3F8B #4C2E8B #7B2E8B
triadic
#4C2E8B #8B4C2E #2E8B4C
tetradic
#4C2E8B #8B2E3F #6D8B2E #2E8B7B
square
#4C2E8B #8B2E3F #6D8B2E #2E8B7B
split-complementary
#4C2E8B #8B7B2E #3F8B2E
monochromatic
#1A102F #331F5D #4C2E8B #653DB9 #8867CD

Accessibility & contrast

On white

10.14
#4C2E8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#4C2E8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2E8B
10.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2E8B#FFFFFF#000000##FFFFFF
##4C2E8B1.0010.142.0710.14
#FFFFFF10.141.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438E
Deuteranopia (green-blind)
#004089
Tritanopia (blue-blind)
#3A4458
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4c2e8b;
/* rgb */ color: rgb(76, 46, 139);
/* oklch */ color: oklch(39.3% 0.147 293.3);
Tailwind
colors: {
  custom: {
    50: '#8469ae',
    500: '#4c2e8b',
    950: '#000000',
  },
}
SCSS
$custom: #4c2e8b;
$custom-light: #8469ae;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2e8b",
  "rgb": {
    "r": 76,
    "g": 46,
    "b": 139
  },
  "hsl": {
    "h": 259.355,
    "s": 50.27,
    "l": 36.275
  },
  "oklch": {
    "l": 0.39255,
    "c": 0.14655,
    "h": 293.3
  },
  "luminance": 0.05355
}

Semantic roles & 50–950 ramp

primary
#4C2E8B
secondary
#99B361
accent
#DA4EAD
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4C2E8B

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

Preview Lab → · Contrast checker → · Palette generator →

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