#4C207E#4C207E

#4C207E is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.2% C 0.149 H 300.3°. Best body text is #FFFFFF at 11.57:1 contrast (WCAG AA passes).

Color values

HEX#4C207E
RGBrgb(76, 32, 126)
HSLhsl(268, 59%, 31%)
HSVhsv(268, 75%, 49%)
CMYKcmyk(39.7%, 74.6%, 0%, 50.6%)
CIE-LABlab(23.92, 40.10, -45.12)
CIE-LCHlch(23.92, 60.36, 311.62°)
OKLaboklab(36.2% 0.0754 -0.1288)
OKLCHoklch(36.2% 0.149 300.3)
XYZxyz(7.2620, 4.0758, 20.1387)
Luminance0.0408 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C207E #527E20
analogous
#20237E #4C207E #7B207E
triadic
#4C207E #7E4C20 #207E4C
tetradic
#4C207E #7E2023 #527E20 #207E7B
square
#4C207E #7E2023 #527E20 #207E7B
split-complementary
#4C207E #7E7B20 #237E20
monochromatic
#11071C #2F144D #4C207E #692CAF #8848D0

Accessibility & contrast

On white

11.57
#4C207E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#4C207E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C207E
11.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C207E#FFFFFF#000000##FFFFFF
##4C207E1.0011.571.8211.57
#FFFFFF11.571.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003981
Deuteranopia (green-blind)
#00387C
Tritanopia (blue-blind)
#41374D
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4c207e;
/* rgb */ color: rgb(76, 32, 126);
/* oklch */ color: oklch(36.2% 0.149 300.3);
Tailwind
colors: {
  custom: {
    50: '#8360a4',
    500: '#4c207e',
    950: '#000000',
  },
}
SCSS
$custom: #4c207e;
$custom-light: #8360a4;
$custom-dark: #000000;
JSON
{
  "hex": "#4c207e",
  "rgb": {
    "r": 76,
    "g": 32,
    "b": 126
  },
  "hsl": {
    "h": 268.085,
    "s": 59.494,
    "l": 30.98
  },
  "oklch": {
    "l": 0.36203,
    "c": 0.14919,
    "h": 300.3
  },
  "luminance": 0.04076
}

Semantic roles & 50–950 ramp

primary
#4C207E
secondary
#80B149
accent
#E34599
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4C207E

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

Preview Lab → · Contrast checker → · Palette generator →

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