#4D2F8D#4D2F8D

#4D2F8D is a dark, vivid violet. Relative luminance 0.055; OKLCH L 39.7% C 0.148 H 293.1°. Best body text is #FFFFFF at 9.97:1 contrast (WCAG AA passes).

Color values

HEX#4D2F8D
RGBrgb(77, 47, 141)
HSLhsl(259, 50%, 37%)
HSVhsv(259, 67%, 55%)
CMYKcmyk(45.4%, 66.7%, 0%, 44.7%)
CIE-LABlab(28.20, 36.38, -47.54)
CIE-LCHlch(28.20, 59.86, 307.42°)
OKLaboklab(39.68% 0.0581 -0.1359)
OKLCHoklch(39.68% 0.148 293.1)
XYZxyz(8.8835, 5.5336, 25.7942)
Luminance0.0553 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2F8D #6F8D2F
analogous
#2F408D #4D2F8D #7C2F8D
triadic
#4D2F8D #8D4D2F #2F8D4D
tetradic
#4D2F8D #8D2F40 #6F8D2F #2F8D7C
square
#4D2F8D #8D2F40 #6F8D2F #2F8D7C
split-complementary
#4D2F8D #8D7C2F #408D2F
monochromatic
#1B1031 #34205F #4D2F8D #663EBB #8969CD

Accessibility & contrast

On white

9.97
#4D2F8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#4D2F8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2F8D
9.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2F8D#FFFFFF#000000##FFFFFF
##4D2F8D1.009.972.119.97
#FFFFFF9.971.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004490
Deuteranopia (green-blind)
#00418B
Tritanopia (blue-blind)
#3B4559
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4d2f8d;
/* rgb */ color: rgb(77, 47, 141);
/* oklch */ color: oklch(39.7% 0.148 293.1);
Tailwind
colors: {
  custom: {
    50: '#8469af',
    500: '#4d2f8d',
    950: '#000000',
  },
}
SCSS
$custom: #4d2f8d;
$custom-light: #8469af;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2f8d",
  "rgb": {
    "r": 77,
    "g": 47,
    "b": 141
  },
  "hsl": {
    "h": 259.149,
    "s": 50,
    "l": 36.863
  },
  "oklch": {
    "l": 0.39679,
    "c": 0.14777,
    "h": 293.1
  },
  "luminance": 0.05534
}

Semantic roles & 50–950 ramp

primary
#4D2F8D
secondary
#9AB464
accent
#DA4EAD
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4D2F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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