#4D279A#4D279A

#4D279A is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.7% C 0.174 H 291.5°. Best body text is #FFFFFF at 10.13:1 contrast (WCAG AA passes).

Color values

HEX#4D279A
RGBrgb(77, 39, 154)
HSLhsl(260, 60%, 38%)
HSVhsv(260, 75%, 60%)
CMYKcmyk(50%, 74.7%, 0%, 39.6%)
CIE-LABlab(27.74, 44.45, -56.29)
CIE-LCHlch(27.74, 71.73, 308.30°)
OKLaboklab(39.69% 0.0637 -0.1615)
OKLCHoklch(39.69% 0.174 291.5)
XYZxyz(9.6172, 5.3615, 31.0937)
Luminance0.0536 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D279A #749A27
analogous
#273B9A #4D279A #86279A
triadic
#4D279A #9A4D27 #279A4D
tetradic
#4D279A #9A273B #749A27 #279A86
square
#4D279A #9A273B #749A27 #279A86
split-complementary
#4D279A #9A8627 #3B9A27
monochromatic
#1C0E38 #351B69 #4D279A #6533CB #8A64D8

Accessibility & contrast

On white

10.13
#4D279A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#4D279A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D279A
10.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D279A#FFFFFF#000000##FFFFFF
##4D279A1.0010.132.0710.13
#FFFFFF10.131.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439D
Deuteranopia (green-blind)
#003F98
Tritanopia (blue-blind)
#34465E
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4d279a;
/* rgb */ color: rgb(77, 39, 154);
/* oklch */ color: oklch(39.7% 0.174 291.5);
Tailwind
colors: {
  custom: {
    50: '#8765b9',
    500: '#4d279a',
    950: '#000000',
  },
}
SCSS
$custom: #4d279a;
$custom-light: #8765b9;
$custom-dark: #000000;
JSON
{
  "hex": "#4d279a",
  "rgb": {
    "r": 77,
    "g": 39,
    "b": 154
  },
  "hsl": {
    "h": 259.826,
    "s": 59.585,
    "l": 37.843
  },
  "oklch": {
    "l": 0.39691,
    "c": 0.17367,
    "h": 291.5
  },
  "luminance": 0.05362
}

Semantic roles & 50–950 ramp

primary
#4D279A
secondary
#9EBD5F
accent
#E345AF
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4D279A

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

Preview Lab → · Contrast checker → · Palette generator →

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