#4C2E85#4C2E85

#4C2E85 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 38.8% C 0.139 H 295.0°. Best body text is #FFFFFF at 10.31:1 contrast (WCAG AA passes).

Color values

HEX#4C2E85
RGBrgb(76, 46, 133)
HSLhsl(261, 49%, 35%)
HSVhsv(261, 65%, 52%)
CMYKcmyk(42.9%, 65.4%, 0%, 47.8%)
CIE-LABlab(27.25, 34.41, -44.11)
CIE-LCHlch(27.25, 55.95, 307.96°)
OKLaboklab(38.77% 0.0586 -0.1258)
OKLCHoklch(38.77% 0.139 295)
XYZxyz(8.1900, 5.1838, 22.7548)
Luminance0.0518 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2E85 #67852E
analogous
#2E3B85 #4C2E85 #782E85
triadic
#4C2E85 #854C2E #2E854C
tetradic
#4C2E85 #852E3B #67852E #2E8578
square
#4C2E85 #852E3B #67852E #2E8578
split-complementary
#4C2E85 #85782E #3B852E
monochromatic
#180F2A #321E58 #4C2E85 #663EB2 #8764C9

Accessibility & contrast

On white

10.31
#4C2E85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#4C2E85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2E85
10.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2E85#FFFFFF#000000##FFFFFF
##4C2E851.0010.312.0410.31
#FFFFFF10.311.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004188
Deuteranopia (green-blind)
#003F83
Tritanopia (blue-blind)
#3D4255
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4c2e85;
/* rgb */ color: rgb(76, 46, 133);
/* oklch */ color: oklch(38.8% 0.139 295.0);
Tailwind
colors: {
  custom: {
    50: '#8368a9',
    500: '#4c2e85',
    950: '#000000',
  },
}
SCSS
$custom: #4c2e85;
$custom-light: #8368a9;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2e85",
  "rgb": {
    "r": 76,
    "g": 46,
    "b": 133
  },
  "hsl": {
    "h": 260.69,
    "s": 48.603,
    "l": 35.098
  },
  "oklch": {
    "l": 0.38768,
    "c": 0.13882,
    "h": 295
  },
  "luminance": 0.05184
}

Semantic roles & 50–950 ramp

primary
#4C2E85
secondary
#94B05F
accent
#D850A9
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4C2E85

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

Preview Lab → · Contrast checker → · Palette generator →

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