#4C2897#4C2897

#4C2897 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.4% C 0.169 H 291.5°. Best body text is #FFFFFF at 10.21:1 contrast (WCAG AA passes).

Color values

HEX#4C2897
RGBrgb(76, 40, 151)
HSLhsl(259, 58%, 37%)
HSVhsv(259, 74%, 59%)
CMYKcmyk(49.7%, 73.5%, 0%, 40.8%)
CIE-LABlab(27.54, 42.92, -54.78)
CIE-LCHlch(27.54, 69.60, 308.08°)
OKLaboklab(39.44% 0.062 -0.1572)
OKLCHoklch(39.44% 0.169 291.5)
XYZxyz(9.3236, 5.2881, 29.8016)
Luminance0.0529 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2897 #739728
analogous
#283C97 #4C2897 #832897
triadic
#4C2897 #974C28 #28974C
tetradic
#4C2897 #97283C #739728 #289783
square
#4C2897 #97283C #739728 #289783
split-complementary
#4C2897 #978328 #3C9728
monochromatic
#1B0E36 #341B67 #4C2897 #6435C7 #8964D6

Accessibility & contrast

On white

10.21
#4C2897 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C2897
10.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2897#FFFFFF#000000##FFFFFF
##4C28971.0010.212.0610.21
#FFFFFF10.211.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439A
Deuteranopia (green-blind)
#003F95
Tritanopia (blue-blind)
#34455D
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4c2897;
/* rgb */ color: rgb(76, 40, 151);
/* oklch */ color: oklch(39.4% 0.169 291.5);
Tailwind
colors: {
  custom: {
    50: '#8665b7',
    500: '#4c2897',
    950: '#000000',
  },
}
SCSS
$custom: #4c2897;
$custom-light: #8665b7;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2897",
  "rgb": {
    "r": 76,
    "g": 40,
    "b": 151
  },
  "hsl": {
    "h": 259.459,
    "s": 58.115,
    "l": 37.451
  },
  "oklch": {
    "l": 0.3944,
    "c": 0.16897,
    "h": 291.5
  },
  "luminance": 0.05288
}

Semantic roles & 50–950 ramp

primary
#4C2897
secondary
#9EBC5F
accent
#E146AF
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4C2897

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

Preview Lab → · Contrast checker → · Palette generator →

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