#4D1EA8#4D1EA8

#4D1EA8 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 40.0% C 0.198 H 289.5°. Best body text is #FFFFFF at 10.16:1 contrast (WCAG AA passes).

Color values

HEX#4D1EA8
RGBrgb(77, 30, 168)
HSLhsl(260, 70%, 39%)
HSVhsv(260, 82%, 66%)
CMYKcmyk(54.2%, 82.1%, 0%, 34.1%)
CIE-LABlab(27.66, 52.40, -64.92)
CIE-LCHlch(27.66, 83.43, 308.91°)
OKLaboklab(40.04% 0.0663 -0.1867)
OKLCHoklch(40.04% 0.198 289.5)
XYZxyz(10.5907, 5.3330, 37.5095)
Luminance0.0533 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1EA8 #79A81E
analogous
#1E34A8 #4D1EA8 #921EA8
triadic
#4D1EA8 #A84D1E #1EA84D
tetradic
#4D1EA8 #A81E34 #79A81E #1EA892
square
#4D1EA8 #A81E34 #79A81E #1EA892
split-complementary
#4D1EA8 #A8921E #34A81E
monochromatic
#1D0B40 #351574 #4D1EA8 #662AD9 #8B5EE2

Accessibility & contrast

On white

10.16
#4D1EA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D1EA8
10.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1EA8#FFFFFF#000000##FFFFFF
##4D1EA81.0010.162.0710.16
#FFFFFF10.161.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044AC
Deuteranopia (green-blind)
#003EA6
Tritanopia (blue-blind)
#294864
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4d1ea8;
/* rgb */ color: rgb(77, 30, 168);
/* oklch */ color: oklch(40.0% 0.198 289.5);
Tailwind
colors: {
  custom: {
    50: '#8961c3',
    500: '#4d1ea8',
    950: '#000000',
  },
}
SCSS
$custom: #4d1ea8;
$custom-light: #8961c3;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1ea8",
  "rgb": {
    "r": 77,
    "g": 30,
    "b": 168
  },
  "hsl": {
    "h": 260.435,
    "s": 69.697,
    "l": 38.824
  },
  "oklch": {
    "l": 0.40045,
    "c": 0.19815,
    "h": 289.5
  },
  "luminance": 0.05333
}

Semantic roles & 50–950 ramp

primary
#4D1EA8
secondary
#A2C75B
accent
#ED3BB0
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0513
muted
#7E7A82

Preview Lab

Preview with #4D1EA8

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

Preview Lab → · Contrast checker → · Palette generator →

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