#4C2080#4C2080

#4C2080 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.4% C 0.151 H 299.6°. Best body text is #FFFFFF at 11.50:1 contrast (WCAG AA passes).

Color values

HEX#4C2080
RGBrgb(76, 32, 128)
HSLhsl(268, 60%, 31%)
HSVhsv(268, 75%, 50%)
CMYKcmyk(40.6%, 75%, 0%, 49.8%)
CIE-LABlab(24.09, 40.63, -46.11)
CIE-LCHlch(24.09, 61.45, 311.38°)
OKLaboklab(36.38% 0.0749 -0.1317)
OKLCHoklch(36.38% 0.151 299.6)
XYZxyz(7.3923, 4.1280, 20.8252)
Luminance0.0413 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2080 #548020
analogous
#202480 #4C2080 #7C2080
triadic
#4C2080 #804C20 #20804C
tetradic
#4C2080 #802024 #548020 #20807C
square
#4C2080 #802024 #548020 #20807C
split-complementary
#4C2080 #807C20 #248020
monochromatic
#12081E #2F144F #4C2080 #692CB1 #8849D1

Accessibility & contrast

On white

11.50
#4C2080 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#4C2080 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2080
11.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2080#FFFFFF#000000##FFFFFF
##4C20801.0011.501.8311.50
#FFFFFF11.501.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.501.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4c2080;
/* rgb */ color: rgb(76, 32, 128);
/* oklch */ color: oklch(36.4% 0.151 299.6);
Tailwind
colors: {
  custom: {
    50: '#8360a6',
    500: '#4c2080',
    950: '#000000',
  },
}
SCSS
$custom: #4c2080;
$custom-light: #8360a6;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2080",
  "rgb": {
    "r": 76,
    "g": 32,
    "b": 128
  },
  "hsl": {
    "h": 267.5,
    "s": 60,
    "l": 31.373
  },
  "oklch": {
    "l": 0.36376,
    "c": 0.15149,
    "h": 299.6
  },
  "luminance": 0.04128
}

Semantic roles & 50–950 ramp

primary
#4C2080
secondary
#82B349
accent
#E3459B
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4C2080

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

Preview Lab → · Contrast checker → · Palette generator →

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