#4C207B#4C207B

#4C207B is a dark, vivid violet. Relative luminance 0.040; OKLCH L 35.9% C 0.146 H 301.4°. Best body text is #FFFFFF at 11.67:1 contrast (WCAG AA passes).

Color values

HEX#4C207B
RGBrgb(76, 32, 123)
HSLhsl(269, 59%, 30%)
HSVhsv(269, 74%, 48%)
CMYKcmyk(38.2%, 74%, 0%, 51.8%)
CIE-LABlab(23.67, 39.30, -43.63)
CIE-LCHlch(23.67, 58.72, 312.01°)
OKLaboklab(35.95% 0.076 -0.1244)
OKLCHoklch(35.95% 0.146 301.4)
XYZxyz(7.0713, 3.9995, 19.1345)
Luminance0.0400 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C207B #4F7B20
analogous
#20217B #4C207B #79207B
triadic
#4C207B #7B4C20 #207B4C
tetradic
#4C207B #7B2021 #4F7B20 #207B79
square
#4C207B #7B2021 #4F7B20 #207B79
split-complementary
#4C207B #7B7920 #217B20
monochromatic
#10071A #2E134A #4C207B #6A2DAC #8846CF

Accessibility & contrast

On white

11.67
#4C207B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#4C207B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C207B
11.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C207B#FFFFFF#000000##FFFFFF
##4C207B1.0011.671.8011.67
#FFFFFF11.671.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387E
Deuteranopia (green-blind)
#003879
Tritanopia (blue-blind)
#42364B
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4c207b;
/* rgb */ color: rgb(76, 32, 123);
/* oklch */ color: oklch(35.9% 0.146 301.4);
Tailwind
colors: {
  custom: {
    50: '#8360a2',
    500: '#4c207b',
    950: '#000000',
  },
}
SCSS
$custom: #4c207b;
$custom-light: #8360a2;
$custom-dark: #000000;
JSON
{
  "hex": "#4c207b",
  "rgb": {
    "r": 76,
    "g": 32,
    "b": 123
  },
  "hsl": {
    "h": 269.011,
    "s": 58.71,
    "l": 30.392
  },
  "oklch": {
    "l": 0.35947,
    "c": 0.14574,
    "h": 301.4
  },
  "luminance": 0.04
}

Semantic roles & 50–950 ramp

primary
#4C207B
secondary
#7DAE49
accent
#E24696
background
#F8F5FA
surface
#EFEAF3
border
#CAC6CD
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4C207B

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

Preview Lab → · Contrast checker → · Palette generator →

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