#4C2679#4C2679

#4C2679 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.6% C 0.135 H 300.9°. Best body text is #FFFFFF at 11.29:1 contrast (WCAG AA passes).

Color values

HEX#4C2679
RGBrgb(76, 38, 121)
HSLhsl(267, 52%, 31%)
HSVhsv(267, 69%, 47%)
CMYKcmyk(37.2%, 68.6%, 0%, 52.5%)
CIE-LABlab(24.65, 35.60, -40.77)
CIE-LCHlch(24.65, 54.12, 311.13°)
OKLaboklab(36.6% 0.0695 -0.116)
OKLCHoklch(36.6% 0.135 300.9)
XYZxyz(7.1240, 4.3032, 18.5407)
Luminance0.0430 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2679 #537926
analogous
#262979 #4C2679 #752679
triadic
#4C2679 #794C26 #26794C
tetradic
#4C2679 #792629 #537926 #267975
square
#4C2679 #792629 #537926 #267975
split-complementary
#4C2679 #797526 #297926
monochromatic
#11091C #2F174A #4C2679 #6935A8 #8851C8

Accessibility & contrast

On white

11.29
#4C2679 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#4C2679 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2679
11.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2679#FFFFFF#000000##FFFFFF
##4C26791.0011.291.8611.29
#FFFFFF11.291.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7C
Deuteranopia (green-blind)
#003A77
Tritanopia (blue-blind)
#42394C
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4c2679;
/* rgb */ color: rgb(76, 38, 121);
/* oklch */ color: oklch(36.6% 0.135 300.9);
Tailwind
colors: {
  custom: {
    50: '#8263a0',
    500: '#4c2679',
    950: '#000000',
  },
}
SCSS
$custom: #4c2679;
$custom-light: #8263a0;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2679",
  "rgb": {
    "r": 76,
    "g": 38,
    "b": 121
  },
  "hsl": {
    "h": 267.47,
    "s": 52.201,
    "l": 31.176
  },
  "oklch": {
    "l": 0.36596,
    "c": 0.1352,
    "h": 300.9
  },
  "luminance": 0.04303
}

Semantic roles & 50–950 ramp

primary
#4C2679
secondary
#81AB50
accent
#DC4C9A
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B050F
muted
#7C7A7E

Preview Lab

Preview with #4C2679

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

Preview Lab → · Contrast checker → · Palette generator →

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