#4C279E#4C279E

#4C279E is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.0% C 0.178 H 290.1°. Best body text is #FFFFFF at 10.04:1 contrast (WCAG AA passes).

Color values

HEX#4C279E
RGBrgb(76, 39, 158)
HSLhsl(259, 60%, 39%)
HSVhsv(259, 75%, 62%)
CMYKcmyk(51.9%, 75.3%, 0%, 38%)
CIE-LABlab(28.00, 45.43, -58.32)
CIE-LCHlch(28.00, 73.92, 307.92°)
OKLaboklab(39.96% 0.0612 -0.1675)
OKLCHoklch(39.96% 0.178 290.1)
XYZxyz(9.8758, 5.4557, 32.8738)
Luminance0.0546 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C279E #799E27
analogous
#273E9E #4C279E #87279E
triadic
#4C279E #9E4C27 #279E4C
tetradic
#4C279E #9E273E #799E27 #279E87
square
#4C279E #9E273E #799E27 #279E87
split-complementary
#4C279E #9E8727 #3E9E27
monochromatic
#1D0F3C #341B6D #4C279E #6435CD #8A66D9

Accessibility & contrast

On white

10.04
#4C279E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#4C279E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C279E
10.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C279E#FFFFFF#000000##FFFFFF
##4C279E1.0010.042.0910.04
#FFFFFF10.041.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A1
Deuteranopia (green-blind)
#003F9C
Tritanopia (blue-blind)
#2F4761
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4c279e;
/* rgb */ color: rgb(76, 39, 158);
/* oklch */ color: oklch(40.0% 0.178 290.1);
Tailwind
colors: {
  custom: {
    50: '#8765bc',
    500: '#4c279e',
    950: '#000000',
  },
}
SCSS
$custom: #4c279e;
$custom-light: #8765bc;
$custom-dark: #000000;
JSON
{
  "hex": "#4c279e",
  "rgb": {
    "r": 76,
    "g": 39,
    "b": 158
  },
  "hsl": {
    "h": 258.655,
    "s": 60.406,
    "l": 38.627
  },
  "oklch": {
    "l": 0.39957,
    "c": 0.17836,
    "h": 290.1
  },
  "luminance": 0.05456
}

Semantic roles & 50–950 ramp

primary
#4C279E
secondary
#A2BF62
accent
#E444B2
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4C279E

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

Preview Lab → · Contrast checker → · Palette generator →

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