#4D2E7A#4D2E7A

#4D2E7A is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.0% C 0.125 H 299.2°. Best body text is #FFFFFF at 10.57:1 contrast (WCAG AA passes).

Color values

HEX#4D2E7A
RGBrgb(77, 46, 122)
HSLhsl(264, 45%, 33%)
HSVhsv(264, 62%, 48%)
CMYKcmyk(36.9%, 62.3%, 0%, 52.2%)
CIE-LABlab(26.55, 31.51, -38.32)
CIE-LCHlch(26.55, 49.61, 309.43°)
OKLaboklab(38.03% 0.0608 -0.1088)
OKLCHoklch(38.03% 0.125 299.2)
XYZxyz(7.5496, 4.9368, 18.9637)
Luminance0.0494 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2E7A #5B7A2E
analogous
#2E357A #4D2E7A #732E7A
triadic
#4D2E7A #7A4D2E #2E7A4D
tetradic
#4D2E7A #7A2E35 #5B7A2E #2E7A73
square
#4D2E7A #7A2E35 #5B7A2E #2E7A73
split-complementary
#4D2E7A #7A732E #357A2E
monochromatic
#150C21 #311D4E #4D2E7A #693FA6 #8860C3

Accessibility & contrast

On white

10.57
#4D2E7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#4D2E7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2E7A
10.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2E7A#FFFFFF#000000##FFFFFF
##4D2E7A1.0010.571.9910.57
#FFFFFF10.571.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#013F7C
Deuteranopia (green-blind)
#133E78
Tritanopia (blue-blind)
#433E4F
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4d2e7a;
/* rgb */ color: rgb(77, 46, 122);
/* oklch */ color: oklch(38.0% 0.125 299.2);
Tailwind
colors: {
  custom: {
    50: '#8268a1',
    500: '#4d2e7a',
    950: '#000000',
  },
}
SCSS
$custom: #4d2e7a;
$custom-light: #8268a1;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2e7a",
  "rgb": {
    "r": 77,
    "g": 46,
    "b": 122
  },
  "hsl": {
    "h": 264.474,
    "s": 45.238,
    "l": 32.941
  },
  "oklch": {
    "l": 0.38028,
    "c": 0.1246,
    "h": 299.2
  },
  "luminance": 0.04937
}

Semantic roles & 50–950 ramp

primary
#4D2E7A
secondary
#89AA5A
accent
#D553A0
background
#F8F6FA
surface
#EFEBF3
border
#CAC6CD
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #4D2E7A

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

Preview Lab → · Contrast checker → · Palette generator →

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