#4C207F#4C207F

#4C207F is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.3% C 0.150 H 300.0°. Best body text is #FFFFFF at 11.54:1 contrast (WCAG AA passes).

Color values

HEX#4C207F
RGBrgb(76, 32, 127)
HSLhsl(268, 60%, 31%)
HSVhsv(268, 75%, 50%)
CMYKcmyk(40.2%, 74.8%, 0%, 50.2%)
CIE-LABlab(24.01, 40.36, -45.62)
CIE-LCHlch(24.01, 60.91, 311.50°)
OKLaboklab(36.29% 0.0752 -0.1302)
OKLCHoklch(36.29% 0.15 300)
XYZxyz(7.3268, 4.1018, 20.4803)
Luminance0.0410 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C207F #537F20
analogous
#20247F #4C207F #7B207F
triadic
#4C207F #7F4C20 #207F4C
tetradic
#4C207F #7F2024 #537F20 #207F7B
square
#4C207F #7F2024 #537F20 #207F7B
split-complementary
#4C207F #7F7B20 #247F20
monochromatic
#11071D #2F144E #4C207F #692CB0 #8848D1

Accessibility & contrast

On white

11.54
#4C207F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C207F
11.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C207F#FFFFFF#000000##FFFFFF
##4C207F1.0011.541.8211.54
#FFFFFF11.541.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003982
Deuteranopia (green-blind)
#00387D
Tritanopia (blue-blind)
#40384D
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4c207f;
/* rgb */ color: rgb(76, 32, 127);
/* oklch */ color: oklch(36.3% 0.150 300.0);
Tailwind
colors: {
  custom: {
    50: '#8360a5',
    500: '#4c207f',
    950: '#000000',
  },
}
SCSS
$custom: #4c207f;
$custom-light: #8360a5;
$custom-dark: #000000;
JSON
{
  "hex": "#4c207f",
  "rgb": {
    "r": 76,
    "g": 32,
    "b": 127
  },
  "hsl": {
    "h": 267.789,
    "s": 59.748,
    "l": 31.176
  },
  "oklch": {
    "l": 0.36289,
    "c": 0.15034,
    "h": 300
  },
  "luminance": 0.04102
}

Semantic roles & 50–950 ramp

primary
#4C207F
secondary
#81B249
accent
#E3459A
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4C207F

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

Preview Lab → · Contrast checker → · Palette generator →

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