#4D0F7D#4D0F7D

#4D0F7D is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.6% C 0.166 H 303.6°. Best body text is #FFFFFF at 12.50:1 contrast (WCAG AA passes).

Color values

HEX#4D0F7D
RGBrgb(77, 15, 125)
HSLhsl(274, 79%, 27%)
HSVhsv(274, 88%, 49%)
CMYKcmyk(38.4%, 88%, 0%, 51%)
CIE-LABlab(21.58, 46.92, -48.30)
CIE-LCHlch(21.58, 67.34, 314.17°)
OKLaboklab(34.57% 0.0916 -0.1379)
OKLCHoklch(34.57% 0.166 303.6)
XYZxyz(6.9322, 3.4001, 19.6891)
Luminance0.0340 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D0F7D #3F7D0F
analogous
#160F7D #4D0F7D #7D0F76
triadic
#4D0F7D #7D4D0F #0F7D4D
tetradic
#4D0F7D #7D160F #3F7D0F #0F767D
square
#4D0F7D #7D160F #3F7D0F #0F767D
split-complementary
#4D0F7D #767D0F #0F7D16
monochromatic
#11031B #2B0846 #4D0F7D #6F16B4 #9022E4

Accessibility & contrast

On white

12.50
#4D0F7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#4D0F7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D0F7D
12.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D0F7D#FFFFFF#000000##FFFFFF
##4D0F7D1.0012.501.6812.50
#FFFFFF12.501.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003380
Deuteranopia (green-blind)
#00347B
Tritanopia (blue-blind)
#432F49
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4d0f7d;
/* rgb */ color: rgb(77, 15, 125);
/* oklch */ color: oklch(34.6% 0.166 303.6);
Tailwind
colors: {
  custom: {
    50: '#8558a4',
    500: '#4d0f7d',
    950: '#000000',
  },
}
SCSS
$custom: #4d0f7d;
$custom-light: #8558a4;
$custom-dark: #000000;
JSON
{
  "hex": "#4d0f7d",
  "rgb": {
    "r": 77,
    "g": 15,
    "b": 125
  },
  "hsl": {
    "h": 273.818,
    "s": 78.571,
    "l": 27.451
  },
  "oklch": {
    "l": 0.34569,
    "c": 0.16559,
    "h": 303.6
  },
  "luminance": 0.034
}

Semantic roles & 50–950 ramp

primary
#4D0F7D
secondary
#6CB434
accent
#F53388
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #4D0F7D

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

Preview Lab → · Contrast checker → · Palette generator →

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