#4C2F97#4C2F97

#4C2F97 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.4% C 0.160 H 290.1°. Best body text is #FFFFFF at 9.72:1 contrast (WCAG AA passes).

Color values

HEX#4C2F97
RGBrgb(76, 47, 151)
HSLhsl(257, 53%, 39%)
HSVhsv(257, 69%, 59%)
CMYKcmyk(49.7%, 68.9%, 0%, 40.8%)
CIE-LABlab(28.91, 39.12, -52.55)
CIE-LCHlch(28.91, 65.51, 306.67°)
OKLaboklab(40.42% 0.0552 -0.1506)
OKLCHoklch(40.42% 0.16 290.1)
XYZxyz(9.5813, 5.8035, 29.8875)
Luminance0.0580 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2F97 #7A972F
analogous
#2F4697 #4C2F97 #802F97
triadic
#4C2F97 #974C2F #2F974C
tetradic
#4C2F97 #972F46 #7A972F #2F9780
square
#4C2F97 #972F46 #7A972F #2F9780
split-complementary
#4C2F97 #97802F #46972F
monochromatic
#1D123A #352068 #4C2F97 #6440C3 #8A6ED2

Accessibility & contrast

On white

9.72
#4C2F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#4C2F97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2F97
9.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2F97#FFFFFF#000000##FFFFFF
##4C2F971.009.722.169.72
#FFFFFF9.721.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469A
Deuteranopia (green-blind)
#004295
Tritanopia (blue-blind)
#33495F
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4c2f97;
/* rgb */ color: rgb(76, 47, 151);
/* oklch */ color: oklch(40.4% 0.160 290.1);
Tailwind
colors: {
  custom: {
    50: '#856ab6',
    500: '#4c2f97',
    950: '#000000',
  },
}
SCSS
$custom: #4c2f97;
$custom-light: #856ab6;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2f97",
  "rgb": {
    "r": 76,
    "g": 47,
    "b": 151
  },
  "hsl": {
    "h": 256.731,
    "s": 52.525,
    "l": 38.824
  },
  "oklch": {
    "l": 0.40418,
    "c": 0.16044,
    "h": 290.1
  },
  "luminance": 0.05804
}

Semantic roles & 50–950 ramp

primary
#4C2F97
secondary
#A3B968
accent
#DC4CB4
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4C2F97

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

Preview Lab → · Contrast checker → · Palette generator →

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