#4D257C#4D257C

#4D257C is a dark, vivid violet. Relative luminance 0.044; OKLCH L 36.8% C 0.140 H 300.7°. Best body text is #FFFFFF at 11.22:1 contrast (WCAG AA passes).

Color values

HEX#4D257C
RGBrgb(77, 37, 124)
HSLhsl(268, 54%, 32%)
HSVhsv(268, 70%, 49%)
CMYKcmyk(37.9%, 70.2%, 0%, 51.4%)
CIE-LABlab(24.82, 37.18, -42.40)
CIE-LCHlch(24.82, 56.39, 311.25°)
OKLaboklab(36.82% 0.0717 -0.1207)
OKLCHoklch(36.82% 0.14 300.7)
XYZxyz(7.3593, 4.3561, 19.5180)
Luminance0.0436 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D257C #547C25
analogous
#25297C #4D257C #79257C
triadic
#4D257C #7C4D25 #257C4D
tetradic
#4D257C #7C2529 #547C25 #257C79
square
#4D257C #7C2529 #547C25 #257C79
split-complementary
#4D257C #7C7925 #297C25
monochromatic
#12091E #30174D #4D257C #6A33AB #8950CB

Accessibility & contrast

On white

11.22
#4D257C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#4D257C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D257C
11.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D257C#FFFFFF#000000##FFFFFF
##4D257C1.0011.221.8711.22
#FFFFFF11.221.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7F
Deuteranopia (green-blind)
#003A7A
Tritanopia (blue-blind)
#43394D
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4d257c;
/* rgb */ color: rgb(77, 37, 124);
/* oklch */ color: oklch(36.8% 0.140 300.7);
Tailwind
colors: {
  custom: {
    50: '#8363a3',
    500: '#4d257c',
    950: '#000000',
  },
}
SCSS
$custom: #4d257c;
$custom-light: #8363a3;
$custom-dark: #000000;
JSON
{
  "hex": "#4d257c",
  "rgb": {
    "r": 77,
    "g": 37,
    "b": 124
  },
  "hsl": {
    "h": 267.586,
    "s": 54.037,
    "l": 31.569
  },
  "oklch": {
    "l": 0.36818,
    "c": 0.14044,
    "h": 300.7
  },
  "luminance": 0.04356
}

Semantic roles & 50–950 ramp

primary
#4D257C
secondary
#82AE4F
accent
#DD4A9A
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B050F
muted
#7C7A7F

Preview Lab

Preview with #4D257C

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

Preview Lab → · Contrast checker → · Palette generator →

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