#4D279B#4D279B

#4D279B is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.8% C 0.175 H 291.3°. Best body text is #FFFFFF at 10.10:1 contrast (WCAG AA passes).

Color values

HEX#4D279B
RGBrgb(77, 39, 155)
HSLhsl(260, 60%, 38%)
HSVhsv(260, 75%, 61%)
CMYKcmyk(50.3%, 74.8%, 0%, 39.2%)
CIE-LABlab(27.83, 44.73, -56.75)
CIE-LCHlch(27.83, 72.26, 308.25°)
OKLaboklab(39.78% 0.0635 -0.1629)
OKLCHoklch(39.78% 0.175 291.3)
XYZxyz(9.7008, 5.3950, 31.5342)
Luminance0.0539 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D279B #759B27
analogous
#273B9B #4D279B #87279B
triadic
#4D279B #9B4D27 #279B4D
tetradic
#4D279B #9B273B #759B27 #279B87
square
#4D279B #9B273B #759B27 #279B87
split-complementary
#4D279B #9B8727 #3B9B27
monochromatic
#1C0E39 #351B6A #4D279B #6533CC #8A64D8

Accessibility & contrast

On white

10.10
#4D279B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#4D279B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D279B
10.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D279B#FFFFFF#000000##FFFFFF
##4D279B1.0010.102.0810.10
#FFFFFF10.101.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449E
Deuteranopia (green-blind)
#003F99
Tritanopia (blue-blind)
#33465F
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4d279b;
/* rgb */ color: rgb(77, 39, 155);
/* oklch */ color: oklch(39.8% 0.175 291.3);
Tailwind
colors: {
  custom: {
    50: '#8765b9',
    500: '#4d279b',
    950: '#000000',
  },
}
SCSS
$custom: #4d279b;
$custom-light: #8765b9;
$custom-dark: #000000;
JSON
{
  "hex": "#4d279b",
  "rgb": {
    "r": 77,
    "g": 39,
    "b": 155
  },
  "hsl": {
    "h": 259.655,
    "s": 59.794,
    "l": 38.039
  },
  "oklch": {
    "l": 0.39783,
    "c": 0.17484,
    "h": 291.3
  },
  "luminance": 0.05395
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4D279B

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

Preview Lab → · Contrast checker → · Palette generator →

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