#4D2F8A#4D2F8A

#4D2F8A is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.4% C 0.144 H 293.9°. Best body text is #FFFFFF at 10.05:1 contrast (WCAG AA passes).

Color values

HEX#4D2F8A
RGBrgb(77, 47, 138)
HSLhsl(260, 49%, 36%)
HSVhsv(260, 66%, 54%)
CMYKcmyk(44.2%, 65.9%, 0%, 45.9%)
CIE-LABlab(27.97, 35.50, -46.06)
CIE-LCHlch(27.97, 58.15, 307.62°)
OKLaboklab(39.43% 0.0584 -0.1315)
OKLCHoklch(39.43% 0.144 293.9)
XYZxyz(8.6633, 5.4456, 24.6345)
Luminance0.0545 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2F8A #6C8A2F
analogous
#2F3F8A #4D2F8A #7B2F8A
triadic
#4D2F8A #8A4D2F #2F8A4D
tetradic
#4D2F8A #8A2F3F #6C8A2F #2F8A7B
square
#4D2F8A #8A2F3F #6C8A2F #2F8A7B
split-complementary
#4D2F8A #8A7B2F #3F8A2F
monochromatic
#1A102F #341F5C #4D2F8A #663FB8 #8968CC

Accessibility & contrast

On white

10.05
#4D2F8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#4D2F8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2F8A
10.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2F8A#FFFFFF#000000##FFFFFF
##4D2F8A1.0010.052.0910.05
#FFFFFF10.051.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438D
Deuteranopia (green-blind)
#004088
Tritanopia (blue-blind)
#3C4458
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4d2f8a;
/* rgb */ color: rgb(77, 47, 138);
/* oklch */ color: oklch(39.4% 0.144 293.9);
Tailwind
colors: {
  custom: {
    50: '#8469ad',
    500: '#4d2f8a',
    950: '#000000',
  },
}
SCSS
$custom: #4d2f8a;
$custom-light: #8469ad;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2f8a",
  "rgb": {
    "r": 77,
    "g": 47,
    "b": 138
  },
  "hsl": {
    "h": 259.78,
    "s": 49.189,
    "l": 36.275
  },
  "oklch": {
    "l": 0.39434,
    "c": 0.14393,
    "h": 293.9
  },
  "luminance": 0.05446
}

Semantic roles & 50–950 ramp

primary
#4D2F8A
secondary
#98B362
accent
#D94FAB
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4D2F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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