#4D2E7B#4D2E7B

#4D2E7B is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.1% C 0.126 H 298.8°. Best body text is #FFFFFF at 10.54:1 contrast (WCAG AA passes).

Color values

HEX#4D2E7B
RGBrgb(77, 46, 123)
HSLhsl(264, 46%, 33%)
HSVhsv(264, 63%, 48%)
CMYKcmyk(37.4%, 62.6%, 0%, 51.8%)
CIE-LABlab(26.63, 31.79, -38.84)
CIE-LCHlch(26.63, 50.19, 309.30°)
OKLaboklab(38.1% 0.0607 -0.1103)
OKLCHoklch(38.1% 0.126 298.8)
XYZxyz(7.6118, 4.9617, 19.2917)
Luminance0.0496 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2E7B #5C7B2E
analogous
#2E357B #4D2E7B #732E7B
triadic
#4D2E7B #7B4D2E #2E7B4D
tetradic
#4D2E7B #7B2E35 #5C7B2E #2E7B73
square
#4D2E7B #7B2E35 #5C7B2E #2E7B73
split-complementary
#4D2E7B #7B732E #357B2E
monochromatic
#150D22 #311D4E #4D2E7B #693FA8 #8860C3

Accessibility & contrast

On white

10.54
#4D2E7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D2E7B
10.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2E7B#FFFFFF#000000##FFFFFF
##4D2E7B1.0010.541.9910.54
#FFFFFF10.541.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F7D
Deuteranopia (green-blind)
#113E79
Tritanopia (blue-blind)
#433E50
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4d2e7b;
/* rgb */ color: rgb(77, 46, 123);
/* oklch */ color: oklch(38.1% 0.126 298.8);
Tailwind
colors: {
  custom: {
    50: '#8268a2',
    500: '#4d2e7b',
    950: '#000000',
  },
}
SCSS
$custom: #4d2e7b;
$custom-light: #8268a2;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2e7b",
  "rgb": {
    "r": 77,
    "g": 46,
    "b": 123
  },
  "hsl": {
    "h": 264.156,
    "s": 45.562,
    "l": 33.137
  },
  "oklch": {
    "l": 0.38103,
    "c": 0.12591,
    "h": 298.8
  },
  "luminance": 0.04962
}

Semantic roles & 50–950 ramp

primary
#4D2E7B
secondary
#8AAA5B
accent
#D553A1
background
#F8F6FA
surface
#EFEBF3
border
#CAC6CD
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #4D2E7B

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

Preview Lab → · Contrast checker → · Palette generator →

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