#4C2F92#4C2F92

#4C2F92 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.0% C 0.154 H 291.3°. Best body text is #FFFFFF at 9.86:1 contrast (WCAG AA passes).

Color values

HEX#4C2F92
RGBrgb(76, 47, 146)
HSLhsl(258, 51%, 38%)
HSVhsv(258, 68%, 57%)
CMYKcmyk(47.9%, 67.8%, 0%, 42.7%)
CIE-LABlab(28.50, 37.64, -50.15)
CIE-LCHlch(28.50, 62.70, 306.89°)
OKLaboklab(39.99% 0.056 -0.1436)
OKLCHoklch(39.99% 0.154 291.3)
XYZxyz(9.1839, 5.6445, 27.7942)
Luminance0.0565 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2F92 #75922F
analogous
#2F4392 #4C2F92 #7D2F92
triadic
#4C2F92 #924C2F #2F924C
tetradic
#4C2F92 #922F43 #75922F #2F927D
square
#4C2F92 #922F43 #75922F #2F927D
split-complementary
#4C2F92 #927D2F #43922F
monochromatic
#1C1135 #342064 #4C2F92 #643EC0 #896CD0

Accessibility & contrast

On white

9.86
#4C2F92 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#4C2F92 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2F92
9.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2F92#FFFFFF#000000##FFFFFF
##4C2F921.009.862.139.86
#FFFFFF9.861.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004595
Deuteranopia (green-blind)
#004190
Tritanopia (blue-blind)
#36475C
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4c2f92;
/* rgb */ color: rgb(76, 47, 146);
/* oklch */ color: oklch(40.0% 0.154 291.3);
Tailwind
colors: {
  custom: {
    50: '#8469b3',
    500: '#4c2f92',
    950: '#000000',
  },
}
SCSS
$custom: #4c2f92;
$custom-light: #8469b3;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2f92",
  "rgb": {
    "r": 76,
    "g": 47,
    "b": 146
  },
  "hsl": {
    "h": 257.576,
    "s": 51.295,
    "l": 37.843
  },
  "oklch": {
    "l": 0.39991,
    "c": 0.15412,
    "h": 291.3
  },
  "luminance": 0.05645
}

Semantic roles & 50–950 ramp

primary
#4C2F92
secondary
#9FB766
accent
#DB4DB1
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0B0611
muted
#7C7A80

Preview Lab

Preview with #4C2F92

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

Preview Lab → · Contrast checker → · Palette generator →

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