#4C2895#4C2895

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

Color values

HEX#4C2895
RGBrgb(76, 40, 149)
HSLhsl(260, 58%, 37%)
HSVhsv(260, 73%, 58%)
CMYKcmyk(49%, 73.2%, 0%, 41.6%)
CIE-LABlab(27.36, 42.35, -53.85)
CIE-LCHlch(27.36, 68.51, 308.19°)
OKLaboklab(39.26% 0.0625 -0.1544)
OKLCHoklch(39.26% 0.167 292)
XYZxyz(9.1626, 5.2237, 28.9534)
Luminance0.0522 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2895 #719528
analogous
#283A95 #4C2895 #832895
triadic
#4C2895 #954C28 #28954C
tetradic
#4C2895 #95283A #719528 #289583
square
#4C2895 #95283A #719528 #289583
split-complementary
#4C2895 #958328 #3A9528
monochromatic
#1B0E35 #331B65 #4C2895 #6535C5 #8862D5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4C2895#FFFFFF#000000##FFFFFF
##4C28951.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)
#004298
Deuteranopia (green-blind)
#003E93
Tritanopia (blue-blind)
#35445C
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4c2895;
/* rgb */ color: rgb(76, 40, 149);
/* oklch */ color: oklch(39.3% 0.167 292.0);
Tailwind
colors: {
  custom: {
    50: '#8565b5',
    500: '#4c2895',
    950: '#000000',
  },
}
SCSS
$custom: #4c2895;
$custom-light: #8565b5;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2895",
  "rgb": {
    "r": 76,
    "g": 40,
    "b": 149
  },
  "hsl": {
    "h": 259.817,
    "s": 57.672,
    "l": 37.059
  },
  "oklch": {
    "l": 0.3926,
    "c": 0.16658,
    "h": 292
  },
  "luminance": 0.05224
}

Semantic roles & 50–950 ramp

primary
#4C2895
secondary
#9CBB5E
accent
#E147AE
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4C2895

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

Preview Lab → · Contrast checker → · Palette generator →

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