#4C2F89#4C2F89

#4C2F89 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.2% C 0.143 H 293.6°. Best body text is #FFFFFF at 10.12:1 contrast (WCAG AA passes).

Color values

HEX#4C2F89
RGBrgb(76, 47, 137)
HSLhsl(259, 49%, 36%)
HSVhsv(259, 66%, 54%)
CMYKcmyk(44.5%, 65.7%, 0%, 46.3%)
CIE-LABlab(27.78, 34.99, -45.75)
CIE-LCHlch(27.78, 57.60, 307.41°)
OKLaboklab(39.25% 0.0571 -0.1307)
OKLCHoklch(39.25% 0.143 293.6)
XYZxyz(8.5111, 5.3754, 24.2512)
Luminance0.0538 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2F89 #6C892F
analogous
#2F3F89 #4C2F89 #792F89
triadic
#4C2F89 #894C2F #2F894C
tetradic
#4C2F89 #892F3F #6C892F #2F8979
square
#4C2F89 #892F3F #6C892F #2F8979
split-complementary
#4C2F89 #89792F #3F892F
monochromatic
#19102E #331F5B #4C2F89 #653FB7 #8767CB

Accessibility & contrast

On white

10.12
#4C2F89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C2F89
10.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2F89#FFFFFF#000000##FFFFFF
##4C2F891.0010.122.0810.12
#FFFFFF10.121.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438C
Deuteranopia (green-blind)
#004087
Tritanopia (blue-blind)
#3B4457
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4c2f89;
/* rgb */ color: rgb(76, 47, 137);
/* oklch */ color: oklch(39.2% 0.143 293.6);
Tailwind
colors: {
  custom: {
    50: '#8369ac',
    500: '#4c2f89',
    950: '#000000',
  },
}
SCSS
$custom: #4c2f89;
$custom-light: #8369ac;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2f89",
  "rgb": {
    "r": 76,
    "g": 47,
    "b": 137
  },
  "hsl": {
    "h": 259.333,
    "s": 48.913,
    "l": 36.078
  },
  "oklch": {
    "l": 0.39247,
    "c": 0.14257,
    "h": 293.6
  },
  "luminance": 0.05376
}

Semantic roles & 50–950 ramp

primary
#4C2F89
secondary
#98B262
accent
#D84FAC
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4C2F89

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

Preview Lab → · Contrast checker → · Palette generator →

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