#4C207C#4C207C

#4C207C is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.0% C 0.147 H 301.1°. Best body text is #FFFFFF at 11.63:1 contrast (WCAG AA passes).

Color values

HEX#4C207C
RGBrgb(76, 32, 124)
HSLhsl(269, 59%, 31%)
HSVhsv(269, 74%, 49%)
CMYKcmyk(38.7%, 74.2%, 0%, 51.4%)
CIE-LABlab(23.75, 39.57, -44.13)
CIE-LCHlch(23.75, 59.27, 311.88°)
OKLaboklab(36.03% 0.0758 -0.1258)
OKLCHoklch(36.03% 0.147 301.1)
XYZxyz(7.1342, 4.0247, 19.4659)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C207C #507C20
analogous
#20227C #4C207C #7A207C
triadic
#4C207C #7C4C20 #207C4C
tetradic
#4C207C #7C2022 #507C20 #207C7A
square
#4C207C #7C2022 #507C20 #207C7A
split-complementary
#4C207C #7C7A20 #227C20
monochromatic
#10071B #2E134B #4C207C #6A2DAD #8847CF

Accessibility & contrast

On white

11.63
#4C207C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#4C207C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C207C
11.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C207C#FFFFFF#000000##FFFFFF
##4C207C1.0011.631.8111.63
#FFFFFF11.631.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387F
Deuteranopia (green-blind)
#00387A
Tritanopia (blue-blind)
#41364C
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4c207c;
/* rgb */ color: rgb(76, 32, 124);
/* oklch */ color: oklch(36.0% 0.147 301.1);
Tailwind
colors: {
  custom: {
    50: '#8360a3',
    500: '#4c207c',
    950: '#000000',
  },
}
SCSS
$custom: #4c207c;
$custom-light: #8360a3;
$custom-dark: #000000;
JSON
{
  "hex": "#4c207c",
  "rgb": {
    "r": 76,
    "g": 32,
    "b": 124
  },
  "hsl": {
    "h": 268.696,
    "s": 58.974,
    "l": 30.588
  },
  "oklch": {
    "l": 0.36032,
    "c": 0.14688,
    "h": 301.1
  },
  "luminance": 0.04025
}

Semantic roles & 50–950 ramp

primary
#4C207C
secondary
#7EAF49
accent
#E24697
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4C207C

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

Preview Lab → · Contrast checker → · Palette generator →

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