#4C2F88#4C2F88

#4C2F88 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.2% C 0.141 H 293.9°. Best body text is #FFFFFF at 10.15:1 contrast (WCAG AA passes).

Color values

HEX#4C2F88
RGBrgb(76, 47, 136)
HSLhsl(260, 49%, 36%)
HSVhsv(260, 65%, 53%)
CMYKcmyk(44.1%, 65.4%, 0%, 46.7%)
CIE-LABlab(27.70, 34.70, -45.26)
CIE-LCHlch(27.70, 57.03, 307.48°)
OKLaboklab(39.17% 0.0572 -0.1292)
OKLCHoklch(39.17% 0.141 293.9)
XYZxyz(8.4397, 5.3469, 23.8752)
Luminance0.0535 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2F88 #6B882F
analogous
#2F3E88 #4C2F88 #782F88
triadic
#4C2F88 #884C2F #2F884C
tetradic
#4C2F88 #882F3E #6B882F #2F8878
square
#4C2F88 #882F3E #6B882F #2F8878
split-complementary
#4C2F88 #88782F #3E882F
monochromatic
#19102D #331F5B #4C2F88 #653FB5 #8767CA

Accessibility & contrast

On white

10.15
#4C2F88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#4C2F88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2F88
10.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2F88#FFFFFF#000000##FFFFFF
##4C2F881.0010.152.0710.15
#FFFFFF10.151.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428B
Deuteranopia (green-blind)
#004086
Tritanopia (blue-blind)
#3C4457
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4c2f88;
/* rgb */ color: rgb(76, 47, 136);
/* oklch */ color: oklch(39.2% 0.141 293.9);
Tailwind
colors: {
  custom: {
    50: '#8369ab',
    500: '#4c2f88',
    950: '#000000',
  },
}
SCSS
$custom: #4c2f88;
$custom-light: #8369ab;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2f88",
  "rgb": {
    "r": 76,
    "g": 47,
    "b": 136
  },
  "hsl": {
    "h": 259.551,
    "s": 48.634,
    "l": 35.882
  },
  "oklch": {
    "l": 0.39166,
    "c": 0.14128,
    "h": 293.9
  },
  "luminance": 0.05347
}

Semantic roles & 50–950 ramp

primary
#4C2F88
secondary
#97B161
accent
#D850AC
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4C2F88

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

Preview Lab → · Contrast checker → · Palette generator →

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