#4C2F95#4C2F95

#4C2F95 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.2% C 0.158 H 290.6°. Best body text is #FFFFFF at 9.78:1 contrast (WCAG AA passes).

Color values

HEX#4C2F95
RGBrgb(76, 47, 149)
HSLhsl(257, 52%, 38%)
HSVhsv(257, 68%, 58%)
CMYKcmyk(49%, 68.5%, 0%, 41.6%)
CIE-LABlab(28.74, 38.53, -51.59)
CIE-LCHlch(28.74, 64.39, 306.75°)
OKLaboklab(40.25% 0.0555 -0.1478)
OKLCHoklch(40.25% 0.158 290.6)
XYZxyz(9.4203, 5.7391, 29.0393)
Luminance0.0574 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2F95 #78952F
analogous
#2F4595 #4C2F95 #7F2F95
triadic
#4C2F95 #954C2F #2F954C
tetradic
#4C2F95 #952F45 #78952F #2F957F
square
#4C2F95 #952F45 #78952F #2F957F
split-complementary
#4C2F95 #957F2F #45952F
monochromatic
#1D1238 #342066 #4C2F95 #643FC2 #8A6DD1

Accessibility & contrast

On white

9.78
#4C2F95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#4C2F95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2F95
9.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2F95#FFFFFF#000000##FFFFFF
##4C2F951.009.782.159.78
#FFFFFF9.781.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004698
Deuteranopia (green-blind)
#004193
Tritanopia (blue-blind)
#34485E
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4c2f95;
/* rgb */ color: rgb(76, 47, 149);
/* oklch */ color: oklch(40.2% 0.158 290.6);
Tailwind
colors: {
  custom: {
    50: '#856ab5',
    500: '#4c2f95',
    950: '#000000',
  },
}
SCSS
$custom: #4c2f95;
$custom-light: #856ab5;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2f95",
  "rgb": {
    "r": 76,
    "g": 47,
    "b": 149
  },
  "hsl": {
    "h": 257.059,
    "s": 52.041,
    "l": 38.431
  },
  "oklch": {
    "l": 0.40246,
    "c": 0.15792,
    "h": 290.6
  },
  "luminance": 0.05739
}

Semantic roles & 50–950 ramp

primary
#4C2F95
secondary
#A1B867
accent
#DB4CB3
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4C2F95

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

Preview Lab → · Contrast checker → · Palette generator →

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