#4D2F7D#4D2F7D

#4D2F7D is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.4% C 0.127 H 297.9°. Best body text is #FFFFFF at 10.41:1 contrast (WCAG AA passes).

Color values

HEX#4D2F7D
RGBrgb(77, 47, 125)
HSLhsl(263, 45%, 34%)
HSVhsv(263, 62%, 49%)
CMYKcmyk(38.4%, 62.4%, 0%, 51%)
CIE-LABlab(26.99, 31.76, -39.51)
CIE-LCHlch(26.99, 50.69, 308.79°)
OKLaboklab(38.42% 0.0594 -0.1123)
OKLCHoklch(38.42% 0.127 297.9)
XYZxyz(7.7778, 5.0914, 19.9710)
Luminance0.0509 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2F7D #5F7D2F
analogous
#2F387D #4D2F7D #742F7D
triadic
#4D2F7D #7D4D2F #2F7D4D
tetradic
#4D2F7D #7D2F38 #5F7D2F #2F7D74
square
#4D2F7D #7D2F38 #5F7D2F #2F7D74
split-complementary
#4D2F7D #7D742F #387D2F
monochromatic
#160E24 #321E51 #4D2F7D #6840A9 #8862C4

Accessibility & contrast

On white

10.41
#4D2F7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#4D2F7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2F7D
10.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2F7D#FFFFFF#000000##FFFFFF
##4D2F7D1.0010.412.0210.41
#FFFFFF10.411.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004080
Deuteranopia (green-blind)
#0F3F7B
Tritanopia (blue-blind)
#424051
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4d2f7d;
/* rgb */ color: rgb(77, 47, 125);
/* oklch */ color: oklch(38.4% 0.127 297.9);
Tailwind
colors: {
  custom: {
    50: '#8269a3',
    500: '#4d2f7d',
    950: '#000000',
  },
}
SCSS
$custom: #4d2f7d;
$custom-light: #8269a3;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2f7d",
  "rgb": {
    "r": 77,
    "g": 47,
    "b": 125
  },
  "hsl": {
    "h": 263.077,
    "s": 45.349,
    "l": 33.725
  },
  "oklch": {
    "l": 0.38417,
    "c": 0.12699,
    "h": 297.9
  },
  "luminance": 0.05091
}

Semantic roles & 50–950 ramp

primary
#4D2F7D
secondary
#8DAB5D
accent
#D553A3
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #4D2F7D

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

Preview Lab → · Contrast checker → · Palette generator →

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