#4C2F7A#4C2F7A

#4C2F7A is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.1% C 0.123 H 298.2°. Best body text is #FFFFFF at 10.53:1 contrast (WCAG AA passes).

Color values

HEX#4C2F7A
RGBrgb(76, 47, 122)
HSLhsl(263, 44%, 33%)
HSVhsv(263, 61%, 48%)
CMYKcmyk(37.7%, 61.5%, 0%, 52.2%)
CIE-LABlab(26.66, 30.66, -38.15)
CIE-LCHlch(26.66, 48.94, 308.78°)
OKLaboklab(38.08% 0.058 -0.1083)
OKLCHoklch(38.08% 0.123 298.2)
XYZxyz(7.5090, 4.9746, 18.9732)
Luminance0.0498 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2F7A #5D7A2F
analogous
#2F377A #4C2F7A #712F7A
triadic
#4C2F7A #7A4C2F #2F7A4C
tetradic
#4C2F7A #7A2F37 #5D7A2F #2F7A71
square
#4C2F7A #7A2F37 #5D7A2F #2F7A71
split-complementary
#4C2F7A #7A712F #377A2F
monochromatic
#150D22 #301E4E #4C2F7A #6840A6 #8761C2

Accessibility & contrast

On white

10.53
#4C2F7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#4C2F7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2F7A
10.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2F7A#FFFFFF#000000##FFFFFF
##4C2F7A1.0010.532.0010.53
#FFFFFF10.531.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#033F7C
Deuteranopia (green-blind)
#133E78
Tritanopia (blue-blind)
#423F4F
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4c2f7a;
/* rgb */ color: rgb(76, 47, 122);
/* oklch */ color: oklch(38.1% 0.123 298.2);
Tailwind
colors: {
  custom: {
    50: '#8169a1',
    500: '#4c2f7a',
    950: '#000000',
  },
}
SCSS
$custom: #4c2f7a;
$custom-light: #8169a1;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2f7a",
  "rgb": {
    "r": 76,
    "g": 47,
    "b": 122
  },
  "hsl": {
    "h": 263.2,
    "s": 44.379,
    "l": 33.137
  },
  "oklch": {
    "l": 0.3808,
    "c": 0.12287,
    "h": 298.2
  },
  "luminance": 0.04975
}

Semantic roles & 50–950 ramp

primary
#4C2F7A
secondary
#8BA95C
accent
#D454A2
background
#F8F6FA
surface
#EFEBF3
border
#CAC6CD
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #4C2F7A

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

Preview Lab → · Contrast checker → · Palette generator →

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