#4C279D#4C279D

#4C279D is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.9% C 0.177 H 290.3°. Best body text is #FFFFFF at 10.07:1 contrast (WCAG AA passes).

Color values

HEX#4C279D
RGBrgb(76, 39, 157)
HSLhsl(259, 60%, 38%)
HSVhsv(259, 75%, 62%)
CMYKcmyk(51.6%, 75.2%, 0%, 38.4%)
CIE-LABlab(27.90, 45.14, -57.86)
CIE-LCHlch(27.90, 73.39, 307.96°)
OKLaboklab(39.86% 0.0615 -0.1662)
OKLCHoklch(39.86% 0.177 290.3)
XYZxyz(9.7901, 5.4214, 32.4223)
Luminance0.0542 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C279D #789D27
analogous
#273D9D #4C279D #87279D
triadic
#4C279D #9D4C27 #279D4C
tetradic
#4C279D #9D273D #789D27 #279D87
square
#4C279D #9D273D #789D27 #279D87
split-complementary
#4C279D #9D8727 #3D9D27
monochromatic
#1D0F3B #341B6C #4C279D #6435CD #8A66D9

Accessibility & contrast

On white

10.07
#4C279D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#4C279D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C279D
10.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C279D#FFFFFF#000000##FFFFFF
##4C279D1.0010.072.0810.07
#FFFFFF10.071.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A0
Deuteranopia (green-blind)
#003F9B
Tritanopia (blue-blind)
#2F4760
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4c279d;
/* rgb */ color: rgb(76, 39, 157);
/* oklch */ color: oklch(39.9% 0.177 290.3);
Tailwind
colors: {
  custom: {
    50: '#8765bb',
    500: '#4c279d',
    950: '#000000',
  },
}
SCSS
$custom: #4c279d;
$custom-light: #8765bb;
$custom-dark: #000000;
JSON
{
  "hex": "#4c279d",
  "rgb": {
    "r": 76,
    "g": 39,
    "b": 157
  },
  "hsl": {
    "h": 258.814,
    "s": 60.204,
    "l": 38.431
  },
  "oklch": {
    "l": 0.39864,
    "c": 0.17719,
    "h": 290.3
  },
  "luminance": 0.05422
}

Semantic roles & 50–950 ramp

primary
#4C279D
secondary
#A1BF61
accent
#E344B2
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4C279D

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

Preview Lab → · Contrast checker → · Palette generator →

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