#4C2F8F#4C2F8F

#4C2F8F is a dark, vivid violet. Relative luminance 0.056; OKLCH L 39.7% C 0.150 H 292.0°. Best body text is #FFFFFF at 9.95:1 contrast (WCAG AA passes).

Color values

HEX#4C2F8F
RGBrgb(76, 47, 143)
HSLhsl(258, 51%, 37%)
HSVhsv(258, 67%, 56%)
CMYKcmyk(46.9%, 67.1%, 0%, 43.9%)
CIE-LABlab(28.25, 36.75, -48.70)
CIE-LCHlch(28.25, 61.01, 307.04°)
OKLaboklab(39.74% 0.0564 -0.1393)
OKLCHoklch(39.74% 0.15 292)
XYZxyz(8.9536, 5.5524, 26.5812)
Luminance0.0555 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2F8F #728F2F
analogous
#2F428F #4C2F8F #7C2F8F
triadic
#4C2F8F #8F4C2F #2F8F4C
tetradic
#4C2F8F #8F2F42 #728F2F #2F8F7C
square
#4C2F8F #8F2F42 #728F2F #2F8F7C
split-complementary
#4C2F8F #8F7C2F #428F2F
monochromatic
#1B1133 #342061 #4C2F8F #643EBD #886ACE

Accessibility & contrast

On white

9.95
#4C2F8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#4C2F8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2F8F
9.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2F8F#FFFFFF#000000##FFFFFF
##4C2F8F1.009.952.119.95
#FFFFFF9.951.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004492
Deuteranopia (green-blind)
#00418D
Tritanopia (blue-blind)
#38465B
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4c2f8f;
/* rgb */ color: rgb(76, 47, 143);
/* oklch */ color: oklch(39.7% 0.150 292.0);
Tailwind
colors: {
  custom: {
    50: '#8469b1',
    500: '#4c2f8f',
    950: '#000000',
  },
}
SCSS
$custom: #4c2f8f;
$custom-light: #8469b1;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2f8f",
  "rgb": {
    "r": 76,
    "g": 47,
    "b": 143
  },
  "hsl": {
    "h": 258.125,
    "s": 50.526,
    "l": 37.255
  },
  "oklch": {
    "l": 0.3974,
    "c": 0.15029,
    "h": 292
  },
  "luminance": 0.05553
}

Semantic roles & 50–950 ramp

primary
#4C2F8F
secondary
#9DB565
accent
#DA4EB0
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0B0611
muted
#7C7A80

Preview Lab

Preview with #4C2F8F

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

Preview Lab → · Contrast checker → · Palette generator →

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