#4D258D#4D258D

#4D258D is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.3% C 0.161 H 295.3°. Best body text is #FFFFFF at 10.69:1 contrast (WCAG AA passes).

Color values

HEX#4D258D
RGBrgb(77, 37, 141)
HSLhsl(263, 58%, 35%)
HSVhsv(263, 74%, 55%)
CMYKcmyk(45.4%, 73.8%, 0%, 44.7%)
CIE-LABlab(26.23, 41.83, -50.76)
CIE-LCHlch(26.23, 65.78, 309.50°)
OKLaboklab(38.27% 0.0686 -0.1453)
OKLCHoklch(38.27% 0.161 295.3)
XYZxyz(8.5286, 4.8238, 25.6759)
Luminance0.0482 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D258D #658D25
analogous
#25318D #4D258D #81258D
triadic
#4D258D #8D4D25 #258D4D
tetradic
#4D258D #8D2531 #658D25 #258D81
square
#4D258D #8D2531 #658D25 #258D81
split-complementary
#4D258D #8D8125 #318D25
monochromatic
#180C2C #33185D #4D258D #6732BD #8859D3

Accessibility & contrast

On white

10.69
#4D258D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#4D258D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D258D
10.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D258D#FFFFFF#000000##FFFFFF
##4D258D1.0010.691.9610.69
#FFFFFF10.691.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F90
Deuteranopia (green-blind)
#003C8B
Tritanopia (blue-blind)
#3B4056
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4d258d;
/* rgb */ color: rgb(77, 37, 141);
/* oklch */ color: oklch(38.3% 0.161 295.3);
Tailwind
colors: {
  custom: {
    50: '#8563af',
    500: '#4d258d',
    950: '#000000',
  },
}
SCSS
$custom: #4d258d;
$custom-light: #8563af;
$custom-dark: #000000;
JSON
{
  "hex": "#4d258d",
  "rgb": {
    "r": 77,
    "g": 37,
    "b": 141
  },
  "hsl": {
    "h": 263.077,
    "s": 58.427,
    "l": 34.902
  },
  "oklch": {
    "l": 0.38265,
    "c": 0.16068,
    "h": 295.3
  },
  "luminance": 0.04824
}

Semantic roles & 50–950 ramp

primary
#4D258D
secondary
#92B856
accent
#E246A6
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #4D258D

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

Preview Lab → · Contrast checker → · Palette generator →

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