#4D258F#4D258F

#4D258F is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.4% C 0.163 H 294.7°. Best body text is #FFFFFF at 10.62:1 contrast (WCAG AA passes).

Color values

HEX#4D258F
RGBrgb(77, 37, 143)
HSLhsl(263, 59%, 35%)
HSVhsv(263, 74%, 56%)
CMYKcmyk(46.2%, 74.1%, 0%, 43.9%)
CIE-LABlab(26.40, 42.39, -51.71)
CIE-LCHlch(26.40, 66.86, 309.34°)
OKLaboklab(38.44% 0.0682 -0.1481)
OKLCHoklch(38.44% 0.163 294.7)
XYZxyz(8.6787, 4.8839, 26.4667)
Luminance0.0488 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D258F #678F25
analogous
#25328F #4D258F #82258F
triadic
#4D258F #8F4D25 #258F4D
tetradic
#4D258F #8F2532 #678F25 #258F82
square
#4D258F #8F2532 #678F25 #258F82
split-complementary
#4D258F #8F8225 #328F25
monochromatic
#190C2E #33185E #4D258F #6732C0 #885AD4

Accessibility & contrast

On white

10.62
#4D258F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#4D258F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D258F
10.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D258F#FFFFFF#000000##FFFFFF
##4D258F1.0010.621.9810.62
#FFFFFF10.621.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F92
Deuteranopia (green-blind)
#003D8D
Tritanopia (blue-blind)
#3A4058
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4d258f;
/* rgb */ color: rgb(77, 37, 143);
/* oklch */ color: oklch(38.4% 0.163 294.7);
Tailwind
colors: {
  custom: {
    50: '#8563b1',
    500: '#4d258f',
    950: '#000000',
  },
}
SCSS
$custom: #4d258f;
$custom-light: #8563b1;
$custom-dark: #000000;
JSON
{
  "hex": "#4d258f",
  "rgb": {
    "r": 77,
    "g": 37,
    "b": 143
  },
  "hsl": {
    "h": 262.642,
    "s": 58.889,
    "l": 35.294
  },
  "oklch": {
    "l": 0.38442,
    "c": 0.16305,
    "h": 294.7
  },
  "luminance": 0.04884
}

Semantic roles & 50–950 ramp

primary
#4D258F
secondary
#94B957
accent
#E246A7
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #4D258F

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

Preview Lab → · Contrast checker → · Palette generator →

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