#4D2688#4D2688

#4D2688 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.0% C 0.154 H 296.6°. Best body text is #FFFFFF at 10.78:1 contrast (WCAG AA passes).

Color values

HEX#4D2688
RGBrgb(77, 38, 136)
HSLhsl(264, 56%, 34%)
HSVhsv(264, 72%, 53%)
CMYKcmyk(43.4%, 72.1%, 0%, 46.7%)
CIE-LABlab(25.98, 39.93, -48.04)
CIE-LCHlch(25.98, 62.47, 309.73°)
OKLaboklab(37.96% 0.0686 -0.1373)
OKLCHoklch(37.96% 0.154 296.6)
XYZxyz(8.1964, 4.7414, 23.7711)
Luminance0.0474 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2688 #618826
analogous
#263088 #4D2688 #7E2688
triadic
#4D2688 #884D26 #26884D
tetradic
#4D2688 #882630 #618826 #26887E
square
#4D2688 #882630 #618826 #26887E
split-complementary
#4D2688 #887E26 #308826
monochromatic
#170B28 #321958 #4D2688 #6833B8 #8858D0

Accessibility & contrast

On white

10.78
#4D2688 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#4D2688 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2688
10.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2688#FFFFFF#000000##FFFFFF
##4D26881.0010.781.9510.78
#FFFFFF10.781.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8B
Deuteranopia (green-blind)
#003C86
Tritanopia (blue-blind)
#3E3E54
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4d2688;
/* rgb */ color: rgb(77, 38, 136);
/* oklch */ color: oklch(38.0% 0.154 296.6);
Tailwind
colors: {
  custom: {
    50: '#8464ab',
    500: '#4d2688',
    950: '#000000',
  },
}
SCSS
$custom: #4d2688;
$custom-light: #8464ab;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2688",
  "rgb": {
    "r": 77,
    "g": 38,
    "b": 136
  },
  "hsl": {
    "h": 263.878,
    "s": 56.322,
    "l": 34.118
  },
  "oklch": {
    "l": 0.3796,
    "c": 0.15352,
    "h": 296.6
  },
  "luminance": 0.04742
}

Semantic roles & 50–950 ramp

primary
#4D2688
secondary
#8FB555
accent
#E048A3
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0510
muted
#7C7A7F

Preview Lab

Preview with #4D2688

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

Preview Lab → · Contrast checker → · Palette generator →

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