#4C2F8A#4C2F8A

#4C2F8A is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.3% C 0.144 H 293.3°. Best body text is #FFFFFF at 10.09:1 contrast (WCAG AA passes).

Color values

HEX#4C2F8A
RGBrgb(76, 47, 138)
HSLhsl(259, 49%, 36%)
HSVhsv(259, 66%, 54%)
CMYKcmyk(44.9%, 65.9%, 0%, 45.9%)
CIE-LABlab(27.86, 35.28, -46.25)
CIE-LCHlch(27.86, 58.17, 307.34°)
OKLaboklab(39.33% 0.057 -0.1321)
OKLCHoklch(39.33% 0.144 293.3)
XYZxyz(8.5832, 5.4043, 24.6307)
Luminance0.0541 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2F8A #6D8A2F
analogous
#2F408A #4C2F8A #7A2F8A
triadic
#4C2F8A #8A4C2F #2F8A4C
tetradic
#4C2F8A #8A2F40 #6D8A2F #2F8A7A
square
#4C2F8A #8A2F40 #6D8A2F #2F8A7A
split-complementary
#4C2F8A #8A7A2F #408A2F
monochromatic
#1A102F #331F5C #4C2F8A #653FB8 #8868CC

Accessibility & contrast

On white

10.09
#4C2F8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#4C2F8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2F8A
10.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2F8A#FFFFFF#000000##FFFFFF
##4C2F8A1.0010.092.0810.09
#FFFFFF10.091.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438D
Deuteranopia (green-blind)
#004088
Tritanopia (blue-blind)
#3B4458
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4c2f8a;
/* rgb */ color: rgb(76, 47, 138);
/* oklch */ color: oklch(39.3% 0.144 293.3);
Tailwind
colors: {
  custom: {
    50: '#8369ad',
    500: '#4c2f8a',
    950: '#000000',
  },
}
SCSS
$custom: #4c2f8a;
$custom-light: #8369ad;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2f8a",
  "rgb": {
    "r": 76,
    "g": 47,
    "b": 138
  },
  "hsl": {
    "h": 259.121,
    "s": 49.189,
    "l": 36.275
  },
  "oklch": {
    "l": 0.39328,
    "c": 0.14387,
    "h": 293.3
  },
  "luminance": 0.05405
}

Semantic roles & 50–950 ramp

primary
#4C2F8A
secondary
#99B362
accent
#D94FAD
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4C2F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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