#4C2F94#4C2F94

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

Color values

HEX#4C2F94
RGBrgb(76, 47, 148)
HSLhsl(257, 52%, 38%)
HSVhsv(257, 68%, 58%)
CMYKcmyk(48.6%, 68.2%, 0%, 42%)
CIE-LABlab(28.66, 38.23, -51.11)
CIE-LCHlch(28.66, 63.83, 306.80°)
OKLaboklab(40.16% 0.0557 -0.1464)
OKLCHoklch(40.16% 0.157 290.8)
XYZxyz(9.3408, 5.7073, 28.6207)
Luminance0.0571 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2F94 #77942F
analogous
#2F4494 #4C2F94 #7E2F94
triadic
#4C2F94 #944C2F #2F944C
tetradic
#4C2F94 #942F44 #77942F #2F947E
square
#4C2F94 #942F44 #77942F #2F947E
split-complementary
#4C2F94 #947E2F #44942F
monochromatic
#1C1137 #342066 #4C2F94 #643EC2 #896DD1

Accessibility & contrast

On white

9.81
#4C2F94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#4C2F94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2F94
9.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2F94#FFFFFF#000000##FFFFFF
##4C2F941.009.812.149.81
#FFFFFF9.811.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004597
Deuteranopia (green-blind)
#004192
Tritanopia (blue-blind)
#35485D
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4c2f94;
/* rgb */ color: rgb(76, 47, 148);
/* oklch */ color: oklch(40.2% 0.157 290.8);
Tailwind
colors: {
  custom: {
    50: '#856ab4',
    500: '#4c2f94',
    950: '#000000',
  },
}
SCSS
$custom: #4c2f94;
$custom-light: #856ab4;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2f94",
  "rgb": {
    "r": 76,
    "g": 47,
    "b": 148
  },
  "hsl": {
    "h": 257.228,
    "s": 51.795,
    "l": 38.235
  },
  "oklch": {
    "l": 0.40161,
    "c": 0.15665,
    "h": 290.8
  },
  "luminance": 0.05708
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4C2F94

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

Preview Lab → · Contrast checker → · Palette generator →

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