#4D147B#4D147B

#4D147B is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.8% C 0.159 H 303.8°. Best body text is #FFFFFF at 12.34:1 contrast (WCAG AA passes).

Color values

HEX#4D147B
RGBrgb(77, 20, 123)
HSLhsl(273, 72%, 28%)
HSVhsv(273, 84%, 48%)
CMYKcmyk(37.4%, 83.7%, 0%, 51.8%)
CIE-LABlab(21.97, 44.75, -46.39)
CIE-LCHlch(21.97, 64.45, 313.97°)
OKLaboklab(34.78% 0.0887 -0.1323)
OKLCHoklch(34.78% 0.159 303.8)
XYZxyz(6.8850, 3.5082, 19.0495)
Luminance0.0351 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D147B #427B14
analogous
#19147B #4D147B #7B1475
triadic
#4D147B #7B4D14 #147B4D
tetradic
#4D147B #7B1914 #427B14 #14757B
square
#4D147B #7B1914 #427B14 #14757B
split-complementary
#4D147B #757B14 #147B19
monochromatic
#10041A #2C0B46 #4D147B #6E1DB0 #8E2DDD

Accessibility & contrast

On white

12.34
#4D147B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#4D147B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D147B
12.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D147B#FFFFFF#000000##FFFFFF
##4D147B1.0012.341.7012.34
#FFFFFF12.341.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337E
Deuteranopia (green-blind)
#003479
Tritanopia (blue-blind)
#443048
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4d147b;
/* rgb */ color: rgb(77, 20, 123);
/* oklch */ color: oklch(34.8% 0.159 303.8);
Tailwind
colors: {
  custom: {
    50: '#845aa2',
    500: '#4d147b',
    950: '#000000',
  },
}
SCSS
$custom: #4d147b;
$custom-light: #845aa2;
$custom-dark: #000000;
JSON
{
  "hex": "#4d147b",
  "rgb": {
    "r": 77,
    "g": 20,
    "b": 123
  },
  "hsl": {
    "h": 273.204,
    "s": 72.028,
    "l": 28.039
  },
  "oklch": {
    "l": 0.34785,
    "c": 0.15933,
    "h": 303.8
  },
  "luminance": 0.03508
}

Semantic roles & 50–950 ramp

primary
#4D147B
secondary
#6FB13A
accent
#EF398A
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4D147B

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

Preview Lab → · Contrast checker → · Palette generator →

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