#4D259B#4D259B

#4D259B is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.5% C 0.177 H 291.6°. Best body text is #FFFFFF at 10.23:1 contrast (WCAG AA passes).

Color values

HEX#4D259B
RGBrgb(77, 37, 155)
HSLhsl(260, 61%, 38%)
HSVhsv(260, 76%, 61%)
CMYKcmyk(50.3%, 76.1%, 0%, 39.2%)
CIE-LABlab(27.48, 45.73, -57.32)
CIE-LCHlch(27.48, 73.33, 308.58°)
OKLaboklab(39.54% 0.0652 -0.1646)
OKLCHoklch(39.54% 0.177 291.6)
XYZxyz(9.6369, 5.2671, 31.5129)
Luminance0.0527 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D259B #739B25
analogous
#25389B #4D259B #88259B
triadic
#4D259B #9B4D25 #259B4D
tetradic
#4D259B #9B2538 #739B25 #259B88
square
#4D259B #9B2538 #739B25 #259B88
split-complementary
#4D259B #9B8825 #389B25
monochromatic
#1C0D38 #34196A #4D259B #6631CC #8A61D9

Accessibility & contrast

On white

10.23
#4D259B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#4D259B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D259B
10.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D259B#FFFFFF#000000##FFFFFF
##4D259B1.0010.232.0510.23
#FFFFFF10.231.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439E
Deuteranopia (green-blind)
#003E99
Tritanopia (blue-blind)
#33455E
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4d259b;
/* rgb */ color: rgb(77, 37, 155);
/* oklch */ color: oklch(39.5% 0.177 291.6);
Tailwind
colors: {
  custom: {
    50: '#8764ba',
    500: '#4d259b',
    950: '#000000',
  },
}
SCSS
$custom: #4d259b;
$custom-light: #8764ba;
$custom-dark: #000000;
JSON
{
  "hex": "#4d259b",
  "rgb": {
    "r": 77,
    "g": 37,
    "b": 155
  },
  "hsl": {
    "h": 260.339,
    "s": 61.458,
    "l": 37.647
  },
  "oklch": {
    "l": 0.39537,
    "c": 0.17702,
    "h": 291.6
  },
  "luminance": 0.05267
}

Semantic roles & 50–950 ramp

primary
#4D259B
secondary
#9EBF5D
accent
#E543AE
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4D259B

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

Preview Lab → · Contrast checker → · Palette generator →

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