#4D2B8E#4D2B8E

#4D2B8E is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.2% C 0.154 H 293.8°. Best body text is #FFFFFF at 10.23:1 contrast (WCAG AA passes).

Color values

HEX#4D2B8E
RGBrgb(77, 43, 142)
HSLhsl(261, 54%, 36%)
HSVhsv(261, 70%, 56%)
CMYKcmyk(45.8%, 69.7%, 0%, 44.3%)
CIE-LABlab(27.46, 38.92, -49.37)
CIE-LCHlch(27.46, 62.87, 308.25°)
OKLaboklab(39.17% 0.0623 -0.1412)
OKLCHoklch(39.17% 0.154 293.8)
XYZxyz(8.8056, 5.2583, 26.1369)
Luminance0.0526 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2B8E #6C8E2B
analogous
#2B3B8E #4D2B8E #7F2B8E
triadic
#4D2B8E #8E4D2B #2B8E4D
tetradic
#4D2B8E #8E2B3B #6C8E2B #2B8E7F
square
#4D2B8E #8E2B3B #6C8E2B #2B8E7F
split-complementary
#4D2B8E #8E7F2B #3B8E2B
monochromatic
#1A0F30 #341D5F #4D2B8E #6639BD #8963D0

Accessibility & contrast

On white

10.23
#4D2B8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#4D2B8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2B8E
10.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2B8E#FFFFFF#000000##FFFFFF
##4D2B8E1.0010.232.0510.23
#FFFFFF10.231.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004291
Deuteranopia (green-blind)
#003F8C
Tritanopia (blue-blind)
#3A4359
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4d2b8e;
/* rgb */ color: rgb(77, 43, 142);
/* oklch */ color: oklch(39.2% 0.154 293.8);
Tailwind
colors: {
  custom: {
    50: '#8567b0',
    500: '#4d2b8e',
    950: '#000000',
  },
}
SCSS
$custom: #4d2b8e;
$custom-light: #8567b0;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2b8e",
  "rgb": {
    "r": 77,
    "g": 43,
    "b": 142
  },
  "hsl": {
    "h": 260.606,
    "s": 53.514,
    "l": 36.275
  },
  "oklch": {
    "l": 0.39168,
    "c": 0.15438,
    "h": 293.8
  },
  "luminance": 0.05259
}

Semantic roles & 50–950 ramp

primary
#4D2B8E
secondary
#98B65F
accent
#DD4BAB
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4D2B8E

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

Preview Lab → · Contrast checker → · Palette generator →

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