#4D279D#4D279D

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

Color values

HEX#4D279D
RGBrgb(77, 39, 157)
HSLhsl(259, 60%, 38%)
HSVhsv(259, 75%, 62%)
CMYKcmyk(51%, 75.2%, 0%, 38.4%)
CIE-LABlab(28.01, 45.30, -57.67)
CIE-LCHlch(28.01, 73.34, 308.15°)
OKLaboklab(39.97% 0.063 -0.1656)
OKLCHoklch(39.97% 0.177 290.8)
XYZxyz(9.8702, 5.4627, 32.4261)
Luminance0.0546 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D279D #779D27
analogous
#273C9D #4D279D #88279D
triadic
#4D279D #9D4D27 #279D4D
tetradic
#4D279D #9D273C #779D27 #279D88
square
#4D279D #9D273C #779D27 #279D88
split-complementary
#4D279D #9D8827 #3C9D27
monochromatic
#1D0F3B #351B6C #4D279D #6635CD #8B66D9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4D279D#FFFFFF#000000##FFFFFF
##4D279D1.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)
#0044A0
Deuteranopia (green-blind)
#003F9B
Tritanopia (blue-blind)
#324760
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4d279d;
/* rgb */ color: rgb(77, 39, 157);
/* oklch */ color: oklch(40.0% 0.177 290.8);
Tailwind
colors: {
  custom: {
    50: '#8765bb',
    500: '#4d279d',
    950: '#000000',
  },
}
SCSS
$custom: #4d279d;
$custom-light: #8765bb;
$custom-dark: #000000;
JSON
{
  "hex": "#4d279d",
  "rgb": {
    "r": 77,
    "g": 39,
    "b": 157
  },
  "hsl": {
    "h": 259.322,
    "s": 60.204,
    "l": 38.431
  },
  "oklch": {
    "l": 0.39968,
    "c": 0.17718,
    "h": 290.8
  },
  "luminance": 0.05463
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4D279D

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

Preview Lab → · Contrast checker → · Palette generator →

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