#4C2F99#4C2F99

#4C2F99 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.6% C 0.163 H 289.7°. Best body text is #FFFFFF at 9.66:1 contrast (WCAG AA passes).

Color values

HEX#4C2F99
RGBrgb(76, 47, 153)
HSLhsl(256, 53%, 39%)
HSVhsv(256, 69%, 60%)
CMYKcmyk(50.3%, 69.3%, 0%, 40%)
CIE-LABlab(29.08, 39.71, -53.49)
CIE-LCHlch(29.08, 66.62, 306.59°)
OKLaboklab(40.59% 0.0549 -0.1534)
OKLCHoklch(40.59% 0.163 289.7)
XYZxyz(9.7451, 5.8690, 30.7502)
Luminance0.0587 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2F99 #7C992F
analogous
#2F4799 #4C2F99 #812F99
triadic
#4C2F99 #994C2F #2F994C
tetradic
#4C2F99 #992F47 #7C992F #2F9981
square
#4C2F99 #992F47 #7C992F #2F9981
split-complementary
#4C2F99 #99812F #47992F
monochromatic
#1D123B #35216A #4C2F99 #6541C5 #8B6FD3

Accessibility & contrast

On white

9.66
#4C2F99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#4C2F99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2F99
9.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2F99#FFFFFF#000000##FFFFFF
##4C2F991.009.662.179.66
#FFFFFF9.661.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479C
Deuteranopia (green-blind)
#004297
Tritanopia (blue-blind)
#324A60
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4c2f99;
/* rgb */ color: rgb(76, 47, 153);
/* oklch */ color: oklch(40.6% 0.163 289.7);
Tailwind
colors: {
  custom: {
    50: '#856ab8',
    500: '#4c2f99',
    950: '#000000',
  },
}
SCSS
$custom: #4c2f99;
$custom-light: #856ab8;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2f99",
  "rgb": {
    "r": 76,
    "g": 47,
    "b": 153
  },
  "hsl": {
    "h": 256.415,
    "s": 53,
    "l": 39.216
  },
  "oklch": {
    "l": 0.40591,
    "c": 0.16295,
    "h": 289.7
  },
  "luminance": 0.05869
}

Semantic roles & 50–950 ramp

primary
#4C2F99
secondary
#A4BA69
accent
#DC4BB5
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4C2F99

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

Preview Lab → · Contrast checker → · Palette generator →

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