#4C2D8B#4C2D8B

#4C2D8B is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.1% C 0.148 H 293.5°. Best body text is #FFFFFF at 10.22:1 contrast (WCAG AA passes).

Color values

HEX#4C2D8B
RGBrgb(76, 45, 139)
HSLhsl(260, 51%, 36%)
HSVhsv(260, 68%, 55%)
CMYKcmyk(45.3%, 67.6%, 0%, 45.5%)
CIE-LABlab(27.51, 36.73, -47.43)
CIE-LCHlch(27.51, 59.99, 307.76°)
OKLaboklab(39.1% 0.0591 -0.1356)
OKLCHoklch(39.1% 0.148 293.5)
XYZxyz(8.5778, 5.2771, 24.9877)
Luminance0.0528 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2D8B #6C8B2D
analogous
#2D3D8B #4C2D8B #7B2D8B
triadic
#4C2D8B #8B4C2D #2D8B4C
tetradic
#4C2D8B #8B2D3D #6C8B2D #2D8B7B
square
#4C2D8B #8B2D3D #6C8B2D #2D8B7B
split-complementary
#4C2D8B #8B7B2D #3D8B2D
monochromatic
#190F2F #331E5D #4C2D8B #653CB9 #8765CD

Accessibility & contrast

On white

10.22
#4C2D8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#4C2D8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2D8B
10.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2D8B#FFFFFF#000000##FFFFFF
##4C2D8B1.0010.222.0610.22
#FFFFFF10.221.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428E
Deuteranopia (green-blind)
#003F89
Tritanopia (blue-blind)
#3A4358
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4c2d8b;
/* rgb */ color: rgb(76, 45, 139);
/* oklch */ color: oklch(39.1% 0.148 293.5);
Tailwind
colors: {
  custom: {
    50: '#8468ae',
    500: '#4c2d8b',
    950: '#000000',
  },
}
SCSS
$custom: #4c2d8b;
$custom-light: #8468ae;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2d8b",
  "rgb": {
    "r": 76,
    "g": 45,
    "b": 139
  },
  "hsl": {
    "h": 259.787,
    "s": 51.087,
    "l": 36.078
  },
  "oklch": {
    "l": 0.39103,
    "c": 0.14792,
    "h": 293.5
  },
  "luminance": 0.05277
}

Semantic roles & 50–950 ramp

primary
#4C2D8B
secondary
#98B460
accent
#DB4DAC
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4C2D8B

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

Preview Lab → · Contrast checker → · Palette generator →

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