#4C2F86#4C2F86

#4C2F86 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.0% C 0.139 H 294.4°. Best body text is #FFFFFF at 10.20:1 contrast (WCAG AA passes).

Color values

HEX#4C2F86
RGBrgb(76, 47, 134)
HSLhsl(260, 48%, 35%)
HSVhsv(260, 65%, 53%)
CMYKcmyk(43.3%, 64.9%, 0%, 47.5%)
CIE-LABlab(27.55, 34.12, -44.26)
CIE-LCHlch(27.55, 55.88, 307.62°)
OKLaboklab(39.01% 0.0573 -0.1263)
OKLCHoklch(39.01% 0.139 294.4)
XYZxyz(8.2989, 5.2906, 23.1336)
Luminance0.0529 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2F86 #69862F
analogous
#2F3D86 #4C2F86 #772F86
triadic
#4C2F86 #864C2F #2F864C
tetradic
#4C2F86 #862F3D #69862F #2F8677
square
#4C2F86 #862F3D #69862F #2F8677
split-complementary
#4C2F86 #86772F #3D862F
monochromatic
#190F2B #321F59 #4C2F86 #663FB3 #8766C9

Accessibility & contrast

On white

10.20
#4C2F86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#4C2F86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2F86
10.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2F86#FFFFFF#000000##FFFFFF
##4C2F861.0010.202.0610.20
#FFFFFF10.201.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004289
Deuteranopia (green-blind)
#004084
Tritanopia (blue-blind)
#3D4356
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4c2f86;
/* rgb */ color: rgb(76, 47, 134);
/* oklch */ color: oklch(39.0% 0.139 294.4);
Tailwind
colors: {
  custom: {
    50: '#8369aa',
    500: '#4c2f86',
    950: '#000000',
  },
}
SCSS
$custom: #4c2f86;
$custom-light: #8369aa;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2f86",
  "rgb": {
    "r": 76,
    "g": 47,
    "b": 134
  },
  "hsl": {
    "h": 260,
    "s": 48.066,
    "l": 35.49
  },
  "oklch": {
    "l": 0.39006,
    "c": 0.13868,
    "h": 294.4
  },
  "luminance": 0.05291
}

Semantic roles & 50–950 ramp

primary
#4C2F86
secondary
#96B060
accent
#D850AA
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4C2F86

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

Preview Lab → · Contrast checker → · Palette generator →

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