#4D279E#4D279E

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

Color values

HEX#4D279E
RGBrgb(77, 39, 158)
HSLhsl(259, 60%, 39%)
HSVhsv(259, 75%, 62%)
CMYKcmyk(51.3%, 75.3%, 0%, 38%)
CIE-LABlab(28.11, 45.58, -58.13)
CIE-LCHlch(28.11, 73.87, 308.10°)
OKLaboklab(40.06% 0.0627 -0.1669)
OKLCHoklch(40.06% 0.178 290.6)
XYZxyz(9.9559, 5.4970, 32.8776)
Luminance0.0550 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D279E #789E27
analogous
#273C9E #4D279E #88279E
triadic
#4D279E #9E4D27 #279E4D
tetradic
#4D279E #9E273C #789E27 #279E88
square
#4D279E #9E273C #789E27 #279E88
split-complementary
#4D279E #9E8827 #3C9E27
monochromatic
#1D0F3C #351B6D #4D279E #6635CD #8B66D9

Accessibility & contrast

On white

10.00
#4D279E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D279E
10.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D279E#FFFFFF#000000##FFFFFF
##4D279E1.0010.002.1010.00
#FFFFFF10.001.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A1
Deuteranopia (green-blind)
#00409C
Tritanopia (blue-blind)
#314761
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4d279e;
/* rgb */ color: rgb(77, 39, 158);
/* oklch */ color: oklch(40.1% 0.178 290.6);
Tailwind
colors: {
  custom: {
    50: '#8765bc',
    500: '#4d279e',
    950: '#000000',
  },
}
SCSS
$custom: #4d279e;
$custom-light: #8765bc;
$custom-dark: #000000;
JSON
{
  "hex": "#4d279e",
  "rgb": {
    "r": 77,
    "g": 39,
    "b": 158
  },
  "hsl": {
    "h": 259.16,
    "s": 60.406,
    "l": 38.627
  },
  "oklch": {
    "l": 0.40061,
    "c": 0.17835,
    "h": 290.6
  },
  "luminance": 0.05497
}

Semantic roles & 50–950 ramp

primary
#4D279E
secondary
#A1BF62
accent
#E444B1
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4D279E

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

Preview Lab → · Contrast checker → · Palette generator →

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