#4D146E#4D146E

#4D146E is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.6% C 0.146 H 309.2°. Best body text is #FFFFFF at 12.80:1 contrast (WCAG AA passes).

Color values

HEX#4D146E
RGBrgb(77, 20, 110)
HSLhsl(278, 69%, 25%)
HSVhsv(278, 82%, 43%)
CMYKcmyk(30%, 81.8%, 0%, 56.9%)
CIE-LABlab(20.84, 41.65, -39.87)
CIE-LCHlch(20.84, 57.66, 316.25°)
OKLaboklab(33.64% 0.0923 -0.1132)
OKLCHoklch(33.64% 0.146 309.2)
XYZxyz(6.1246, 3.2040, 15.0446)
Luminance0.0320 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D146E #356E14
analogous
#20146E #4D146E #6E1462
triadic
#4D146E #6E4D14 #146E4D
tetradic
#4D146E #6E2014 #356E14 #14626E
square
#4D146E #6E2014 #356E14 #14626E
split-complementary
#4D146E #626E14 #146E20
monochromatic
#12051A #290B3A #4D146E #711DA2 #9527D6

Accessibility & contrast

On white

12.80
#4D146E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#4D146E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D146E
12.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D146E#FFFFFF#000000##FFFFFF
##4D146E1.0012.801.6412.80
#FFFFFF12.801.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003070
Deuteranopia (green-blind)
#00336C
Tritanopia (blue-blind)
#482B41
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #4d146e;
/* rgb */ color: rgb(77, 20, 110);
/* oklch */ color: oklch(33.6% 0.146 309.2);
Tailwind
colors: {
  custom: {
    50: '#835998',
    500: '#4d146e',
    950: '#000000',
  },
}
SCSS
$custom: #4d146e;
$custom-light: #835998;
$custom-dark: #000000;
JSON
{
  "hex": "#4d146e",
  "rgb": {
    "r": 77,
    "g": 20,
    "b": 110
  },
  "hsl": {
    "h": 278,
    "s": 69.231,
    "l": 25.49
  },
  "oklch": {
    "l": 0.33644,
    "c": 0.14609,
    "h": 309.2
  },
  "luminance": 0.03204
}

Semantic roles & 50–950 ramp

primary
#4D146E
secondary
#61A539
accent
#EC3C7C
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4D146E

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

Preview Lab → · Contrast checker → · Palette generator →

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