#4D257A#4D257A

#4D257A is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.7% C 0.138 H 301.5°. Best body text is #FFFFFF at 11.28:1 contrast (WCAG AA passes).

Color values

HEX#4D257A
RGBrgb(77, 37, 122)
HSLhsl(268, 53%, 31%)
HSVhsv(268, 70%, 48%)
CMYKcmyk(36.9%, 69.7%, 0%, 52.2%)
CIE-LABlab(24.66, 36.64, -41.38)
CIE-LCHlch(24.66, 55.27, 311.52°)
OKLaboklab(36.66% 0.072 -0.1177)
OKLCHoklch(36.66% 0.138 301.5)
XYZxyz(7.2341, 4.3060, 18.8586)
Luminance0.0431 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D257A #527A25
analogous
#25277A #4D257A #77257A
triadic
#4D257A #7A4D25 #257A4D
tetradic
#4D257A #7A2527 #527A25 #257A77
square
#4D257A #7A2527 #527A25 #257A77
split-complementary
#4D257A #7A7725 #277A25
monochromatic
#12091C #2F174B #4D257A #6B33A9 #8950CA

Accessibility & contrast

On white

11.28
#4D257A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#4D257A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D257A
11.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D257A#FFFFFF#000000##FFFFFF
##4D257A1.0011.281.8611.28
#FFFFFF11.281.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7D
Deuteranopia (green-blind)
#003A78
Tritanopia (blue-blind)
#44384C
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4d257a;
/* rgb */ color: rgb(77, 37, 122);
/* oklch */ color: oklch(36.7% 0.138 301.5);
Tailwind
colors: {
  custom: {
    50: '#8363a1',
    500: '#4d257a',
    950: '#000000',
  },
}
SCSS
$custom: #4d257a;
$custom-light: #8363a1;
$custom-dark: #000000;
JSON
{
  "hex": "#4d257a",
  "rgb": {
    "r": 77,
    "g": 37,
    "b": 122
  },
  "hsl": {
    "h": 268.235,
    "s": 53.459,
    "l": 31.176
  },
  "oklch": {
    "l": 0.36656,
    "c": 0.13803,
    "h": 301.5
  },
  "luminance": 0.04306
}

Semantic roles & 50–950 ramp

primary
#4D257A
secondary
#80AC4E
accent
#DD4B98
background
#F8F6FA
surface
#EFEBF3
border
#CAC6CD
text
#0B050F
muted
#7C7A7F

Preview Lab

Preview with #4D257A

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

Preview Lab → · Contrast checker → · Palette generator →

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