#4C279F#4C279F

#4C279F is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.1% C 0.180 H 289.8°. Best body text is #FFFFFF at 10.01:1 contrast (WCAG AA passes).

Color values

HEX#4C279F
RGBrgb(76, 39, 159)
HSLhsl(259, 61%, 39%)
HSVhsv(259, 75%, 62%)
CMYKcmyk(52.2%, 75.5%, 0%, 37.6%)
CIE-LABlab(28.09, 45.71, -58.77)
CIE-LCHlch(28.09, 74.46, 307.87°)
OKLaboklab(40.05% 0.0609 -0.1689)
OKLCHoklch(40.05% 0.18 289.8)
XYZxyz(9.9622, 5.4903, 33.3290)
Luminance0.0549 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C279F #7A9F27
analogous
#273E9F #4C279F #88279F
triadic
#4C279F #9F4C27 #279F4C
tetradic
#4C279F #9F273E #7A9F27 #279F88
square
#4C279F #9F273E #7A9F27 #279F88
split-complementary
#4C279F #9F8827 #3E9F27
monochromatic
#1D0F3D #351B6E #4C279F #6436CE #8A67DA

Accessibility & contrast

On white

10.01
#4C279F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#4C279F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C279F
10.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C279F#FFFFFF#000000##FFFFFF
##4C279F1.0010.012.1010.01
#FFFFFF10.011.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A2
Deuteranopia (green-blind)
#003F9D
Tritanopia (blue-blind)
#2E4861
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4c279f;
/* rgb */ color: rgb(76, 39, 159);
/* oklch */ color: oklch(40.1% 0.180 289.8);
Tailwind
colors: {
  custom: {
    50: '#8765bc',
    500: '#4c279f',
    950: '#000000',
  },
}
SCSS
$custom: #4c279f;
$custom-light: #8765bc;
$custom-dark: #000000;
JSON
{
  "hex": "#4c279f",
  "rgb": {
    "r": 76,
    "g": 39,
    "b": 159
  },
  "hsl": {
    "h": 258.5,
    "s": 60.606,
    "l": 38.824
  },
  "oklch": {
    "l": 0.40051,
    "c": 0.17953,
    "h": 289.8
  },
  "luminance": 0.05491
}

Semantic roles & 50–950 ramp

primary
#4C279F
secondary
#A3C062
accent
#E444B3
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4C279F

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

Preview Lab → · Contrast checker → · Palette generator →

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