#4C2D89#4C2D89

#4C2D89 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 38.9% C 0.145 H 294.1°. Best body text is #FFFFFF at 10.27:1 contrast (WCAG AA passes).

Color values

HEX#4C2D89
RGBrgb(76, 45, 137)
HSLhsl(260, 51%, 36%)
HSVhsv(260, 67%, 54%)
CMYKcmyk(44.5%, 67.2%, 0%, 46.3%)
CIE-LABlab(27.35, 36.15, -46.45)
CIE-LCHlch(27.35, 58.86, 307.89°)
OKLaboklab(38.94% 0.0594 -0.1327)
OKLCHoklch(38.94% 0.145 294.1)
XYZxyz(8.4330, 5.2192, 24.2251)
Luminance0.0522 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2D89 #6A892D
analogous
#2D3C89 #4C2D89 #7A2D89
triadic
#4C2D89 #894C2D #2D894C
tetradic
#4C2D89 #892D3C #6A892D #2D897A
square
#4C2D89 #892D3C #6A892D #2D897A
split-complementary
#4C2D89 #897A2D #3C892D
monochromatic
#190F2D #321E5B #4C2D89 #663CB7 #8764CC

Accessibility & contrast

On white

10.27
#4C2D89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C2D89
10.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2D89#FFFFFF#000000##FFFFFF
##4C2D891.0010.272.0410.27
#FFFFFF10.271.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428C
Deuteranopia (green-blind)
#003F87
Tritanopia (blue-blind)
#3B4357
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4c2d89;
/* rgb */ color: rgb(76, 45, 137);
/* oklch */ color: oklch(38.9% 0.145 294.1);
Tailwind
colors: {
  custom: {
    50: '#8368ac',
    500: '#4c2d89',
    950: '#000000',
  },
}
SCSS
$custom: #4c2d89;
$custom-light: #8368ac;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2d89",
  "rgb": {
    "r": 76,
    "g": 45,
    "b": 137
  },
  "hsl": {
    "h": 260.217,
    "s": 50.549,
    "l": 35.686
  },
  "oklch": {
    "l": 0.38937,
    "c": 0.14538,
    "h": 294.1
  },
  "luminance": 0.05219
}

Semantic roles & 50–950 ramp

primary
#4C2D89
secondary
#97B35F
accent
#DA4EAB
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4C2D89

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

Preview Lab → · Contrast checker → · Palette generator →

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