#4C2B85#4C2B85

#4C2B85 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.3% C 0.143 H 295.7°. Best body text is #FFFFFF at 10.54:1 contrast (WCAG AA passes).

Color values

HEX#4C2B85
RGBrgb(76, 43, 133)
HSLhsl(262, 51%, 35%)
HSVhsv(262, 68%, 52%)
CMYKcmyk(42.9%, 67.7%, 0%, 47.8%)
CIE-LABlab(26.61, 36.14, -45.15)
CIE-LCHlch(26.61, 57.84, 308.68°)
OKLaboklab(38.31% 0.0621 -0.1289)
OKLCHoklch(38.31% 0.143 295.7)
XYZxyz(8.0769, 4.9575, 22.7171)
Luminance0.0496 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2B85 #64852B
analogous
#2B3785 #4C2B85 #792B85
triadic
#4C2B85 #854C2B #2B854C
tetradic
#4C2B85 #852B37 #64852B #2B8579
square
#4C2B85 #852B37 #64852B #2B8579
split-complementary
#4C2B85 #85792B #37852B
monochromatic
#170D29 #321C57 #4C2B85 #663AB3 #875FCB

Accessibility & contrast

On white

10.54
#4C2B85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#4C2B85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2B85
10.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2B85#FFFFFF#000000##FFFFFF
##4C2B851.0010.541.9910.54
#FFFFFF10.541.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004088
Deuteranopia (green-blind)
#003E83
Tritanopia (blue-blind)
#3D4054
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4c2b85;
/* rgb */ color: rgb(76, 43, 133);
/* oklch */ color: oklch(38.3% 0.143 295.7);
Tailwind
colors: {
  custom: {
    50: '#8366a9',
    500: '#4c2b85',
    950: '#000000',
  },
}
SCSS
$custom: #4c2b85;
$custom-light: #8366a9;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2b85",
  "rgb": {
    "r": 76,
    "g": 43,
    "b": 133
  },
  "hsl": {
    "h": 262,
    "s": 51.136,
    "l": 34.51
  },
  "oklch": {
    "l": 0.38306,
    "c": 0.14307,
    "h": 295.7
  },
  "luminance": 0.04958
}

Semantic roles & 50–950 ramp

primary
#4C2B85
secondary
#91B15B
accent
#DB4DA7
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4C2B85

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

Preview Lab → · Contrast checker → · Palette generator →

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