#4D257E#4D257E

#4D257E is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.0% C 0.143 H 300.0°. Best body text is #FFFFFF at 11.16:1 contrast (WCAG AA passes).

Color values

HEX#4D257E
RGBrgb(77, 37, 126)
HSLhsl(267, 55%, 32%)
HSVhsv(267, 71%, 49%)
CMYKcmyk(38.9%, 70.6%, 0%, 50.6%)
CIE-LABlab(24.97, 37.72, -43.40)
CIE-LCHlch(24.97, 57.51, 310.99°)
OKLaboklab(36.98% 0.0714 -0.1237)
OKLCHoklch(36.98% 0.143 300)
XYZxyz(7.4871, 4.4072, 20.1908)
Luminance0.0441 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D257E #567E25
analogous
#252A7E #4D257E #7A257E
triadic
#4D257E #7E4D25 #257E4D
tetradic
#4D257E #7E252A #567E25 #257E7A
square
#4D257E #7E252A #567E25 #257E7A
split-complementary
#4D257E #7E7A25 #2A7E25
monochromatic
#13091F #30174F #4D257E #6A33AD #8851CC

Accessibility & contrast

On white

11.16
#4D257E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D257E
11.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D257E#FFFFFF#000000##FFFFFF
##4D257E1.0011.161.8811.16
#FFFFFF11.161.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.161.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4d257e;
/* rgb */ color: rgb(77, 37, 126);
/* oklch */ color: oklch(37.0% 0.143 300.0);
Tailwind
colors: {
  custom: {
    50: '#8363a4',
    500: '#4d257e',
    950: '#000000',
  },
}
SCSS
$custom: #4d257e;
$custom-light: #8363a4;
$custom-dark: #000000;
JSON
{
  "hex": "#4d257e",
  "rgb": {
    "r": 77,
    "g": 37,
    "b": 126
  },
  "hsl": {
    "h": 266.966,
    "s": 54.601,
    "l": 31.961
  },
  "oklch": {
    "l": 0.36982,
    "c": 0.14284,
    "h": 300
  },
  "luminance": 0.04407
}

Semantic roles & 50–950 ramp

primary
#4D257E
secondary
#84B04F
accent
#DE4A9B
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B050F
muted
#7C7A7F

Preview Lab

Preview with #4D257E

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

Preview Lab → · Contrast checker → · Palette generator →

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