#4C2E8A#4C2E8A

#4C2E8A is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.2% C 0.145 H 293.6°. Best body text is #FFFFFF at 10.17:1 contrast (WCAG AA passes).

Color values

HEX#4C2E8A
RGBrgb(76, 46, 138)
HSLhsl(260, 50%, 36%)
HSVhsv(260, 67%, 54%)
CMYKcmyk(44.9%, 66.7%, 0%, 45.9%)
CIE-LABlab(27.64, 35.87, -46.60)
CIE-LCHlch(27.64, 58.80, 307.59°)
OKLaboklab(39.17% 0.0581 -0.1331)
OKLCHoklch(39.17% 0.145 293.6)
XYZxyz(8.5437, 5.3252, 24.6176)
Luminance0.0532 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2E8A #6C8A2E
analogous
#2E3E8A #4C2E8A #7A2E8A
triadic
#4C2E8A #8A4C2E #2E8A4C
tetradic
#4C2E8A #8A2E3E #6C8A2E #2E8A7A
square
#4C2E8A #8A2E3E #6C8A2E #2E8A7A
split-complementary
#4C2E8A #8A7A2E #3E8A2E
monochromatic
#190F2E #331F5C #4C2E8A #653DB8 #8766CC

Accessibility & contrast

On white

10.17
#4C2E8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C2E8A
10.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2E8A#FFFFFF#000000##FFFFFF
##4C2E8A1.0010.172.0710.17
#FFFFFF10.171.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428D
Deuteranopia (green-blind)
#004088
Tritanopia (blue-blind)
#3B4458
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4c2e8a;
/* rgb */ color: rgb(76, 46, 138);
/* oklch */ color: oklch(39.2% 0.145 293.6);
Tailwind
colors: {
  custom: {
    50: '#8369ad',
    500: '#4c2e8a',
    950: '#000000',
  },
}
SCSS
$custom: #4c2e8a;
$custom-light: #8369ad;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2e8a",
  "rgb": {
    "r": 76,
    "g": 46,
    "b": 138
  },
  "hsl": {
    "h": 259.565,
    "s": 50,
    "l": 36.078
  },
  "oklch": {
    "l": 0.39173,
    "c": 0.14526,
    "h": 293.6
  },
  "luminance": 0.05325
}

Semantic roles & 50–950 ramp

primary
#4C2E8A
secondary
#98B361
accent
#DA4EAC
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4C2E8A

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

Preview Lab → · Contrast checker → · Palette generator →

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