#4D257D#4D257D

#4D257D is a dark, vivid violet. Relative luminance 0.044; OKLCH L 36.9% C 0.142 H 300.4°. Best body text is #FFFFFF at 11.19:1 contrast (WCAG AA passes).

Color values

HEX#4D257D
RGBrgb(77, 37, 125)
HSLhsl(267, 54%, 32%)
HSVhsv(267, 70%, 49%)
CMYKcmyk(38.4%, 70.4%, 0%, 51%)
CIE-LABlab(24.89, 37.45, -42.90)
CIE-LCHlch(24.89, 56.95, 311.12°)
OKLaboklab(36.9% 0.0716 -0.1222)
OKLCHoklch(36.9% 0.142 300.4)
XYZxyz(7.4229, 4.3815, 19.8527)
Luminance0.0438 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D257D #557D25
analogous
#25297D #4D257D #79257D
triadic
#4D257D #7D4D25 #257D4D
tetradic
#4D257D #7D2529 #557D25 #257D79
square
#4D257D #7D2529 #557D25 #257D79
split-complementary
#4D257D #7D7925 #297D25
monochromatic
#13091F #30174E #4D257D #6A33AC #8951CB

Accessibility & contrast

On white

11.19
#4D257D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#4D257D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D257D
11.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D257D#FFFFFF#000000##FFFFFF
##4D257D1.0011.191.8811.19
#FFFFFF11.191.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B80
Deuteranopia (green-blind)
#003A7B
Tritanopia (blue-blind)
#423A4E
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4d257d;
/* rgb */ color: rgb(77, 37, 125);
/* oklch */ color: oklch(36.9% 0.142 300.4);
Tailwind
colors: {
  custom: {
    50: '#8363a3',
    500: '#4d257d',
    950: '#000000',
  },
}
SCSS
$custom: #4d257d;
$custom-light: #8363a3;
$custom-dark: #000000;
JSON
{
  "hex": "#4d257d",
  "rgb": {
    "r": 77,
    "g": 37,
    "b": 125
  },
  "hsl": {
    "h": 267.273,
    "s": 54.321,
    "l": 31.765
  },
  "oklch": {
    "l": 0.369,
    "c": 0.14165,
    "h": 300.4
  },
  "luminance": 0.04382
}

Semantic roles & 50–950 ramp

primary
#4D257D
secondary
#83AF4F
accent
#DE4A9B
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B050F
muted
#7C7A7F

Preview Lab

Preview with #4D257D

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

Preview Lab → · Contrast checker → · Palette generator →

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