#4C2E86#4C2E86

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

Color values

HEX#4C2E86
RGBrgb(76, 46, 134)
HSLhsl(260, 49%, 35%)
HSVhsv(260, 66%, 53%)
CMYKcmyk(43.3%, 65.7%, 0%, 47.5%)
CIE-LABlab(27.33, 34.70, -44.61)
CIE-LCHlch(27.33, 56.52, 307.88°)
OKLaboklab(38.85% 0.0585 -0.1273)
OKLCHoklch(38.85% 0.14 294.7)
XYZxyz(8.2594, 5.2115, 23.1204)
Luminance0.0521 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2E86 #68862E
analogous
#2E3C86 #4C2E86 #782E86
triadic
#4C2E86 #864C2E #2E864C
tetradic
#4C2E86 #862E3C #68862E #2E8678
square
#4C2E86 #862E3C #68862E #2E8678
split-complementary
#4C2E86 #86782E #3C862E
monochromatic
#180F2B #321E58 #4C2E86 #663EB4 #8764CA

Accessibility & contrast

On white

10.28
#4C2E86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C2E86
10.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2E86#FFFFFF#000000##FFFFFF
##4C2E861.0010.282.0410.28
#FFFFFF10.281.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004189
Deuteranopia (green-blind)
#003F84
Tritanopia (blue-blind)
#3D4255
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4c2e86;
/* rgb */ color: rgb(76, 46, 134);
/* oklch */ color: oklch(38.8% 0.140 294.7);
Tailwind
colors: {
  custom: {
    50: '#8368aa',
    500: '#4c2e86',
    950: '#000000',
  },
}
SCSS
$custom: #4c2e86;
$custom-light: #8368aa;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2e86",
  "rgb": {
    "r": 76,
    "g": 46,
    "b": 134
  },
  "hsl": {
    "h": 260.455,
    "s": 48.889,
    "l": 35.294
  },
  "oklch": {
    "l": 0.38848,
    "c": 0.14012,
    "h": 294.7
  },
  "luminance": 0.05212
}

Semantic roles & 50–950 ramp

primary
#4C2E86
secondary
#95B15F
accent
#D84FAA
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4C2E86

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

Preview Lab → · Contrast checker → · Palette generator →

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