#4D279F#4D279F

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

Color values

HEX#4D279F
RGBrgb(77, 39, 159)
HSLhsl(259, 61%, 39%)
HSVhsv(259, 75%, 62%)
CMYKcmyk(51.6%, 75.5%, 0%, 37.6%)
CIE-LABlab(28.20, 45.86, -58.59)
CIE-LCHlch(28.20, 74.41, 308.05°)
OKLaboklab(40.15% 0.0625 -0.1683)
OKLCHoklch(40.15% 0.18 290.4)
XYZxyz(10.0423, 5.5316, 33.3327)
Luminance0.0553 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D279F #799F27
analogous
#273D9F #4D279F #89279F
triadic
#4D279F #9F4D27 #279F4D
tetradic
#4D279F #9F273D #799F27 #279F89
square
#4D279F #9F273D #799F27 #279F89
split-complementary
#4D279F #9F8927 #3D9F27
monochromatic
#1D0F3D #351B6E #4D279F #6636CE #8B67DA

Accessibility & contrast

On white

9.97
#4D279F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#4D279F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D279F
9.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D279F#FFFFFF#000000##FFFFFF
##4D279F1.009.972.119.97
#FFFFFF9.971.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A2
Deuteranopia (green-blind)
#00409D
Tritanopia (blue-blind)
#304861
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4d279f;
/* rgb */ color: rgb(77, 39, 159);
/* oklch */ color: oklch(40.2% 0.180 290.4);
Tailwind
colors: {
  custom: {
    50: '#8765bc',
    500: '#4d279f',
    950: '#000000',
  },
}
SCSS
$custom: #4d279f;
$custom-light: #8765bc;
$custom-dark: #000000;
JSON
{
  "hex": "#4d279f",
  "rgb": {
    "r": 77,
    "g": 39,
    "b": 159
  },
  "hsl": {
    "h": 259,
    "s": 60.606,
    "l": 38.824
  },
  "oklch": {
    "l": 0.40154,
    "c": 0.17951,
    "h": 290.4
  },
  "luminance": 0.05532
}

Semantic roles & 50–950 ramp

primary
#4D279F
secondary
#A2C062
accent
#E444B1
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4D279F

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

Preview Lab → · Contrast checker → · Palette generator →

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