#4D259D#4D259D

#4D259D is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.7% C 0.179 H 291.1°. Best body text is #FFFFFF at 10.16:1 contrast (WCAG AA passes).

Color values

HEX#4D259D
RGBrgb(77, 37, 157)
HSLhsl(260, 62%, 38%)
HSVhsv(260, 76%, 62%)
CMYKcmyk(51%, 76.4%, 0%, 38.4%)
CIE-LABlab(27.67, 46.28, -58.24)
CIE-LCHlch(27.67, 74.39, 308.47°)
OKLaboklab(39.73% 0.0647 -0.1673)
OKLCHoklch(39.73% 0.179 291.1)
XYZxyz(9.8062, 5.3348, 32.4048)
Luminance0.0534 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D259D #759D25
analogous
#25399D #4D259D #89259D
triadic
#4D259D #9D4D25 #259D4D
tetradic
#4D259D #9D2539 #759D25 #259D89
square
#4D259D #9D2539 #759D25 #259D89
split-complementary
#4D259D #9D8925 #399D25
monochromatic
#1C0E3A #35196B #4D259D #6531CE #8A62DA

Accessibility & contrast

On white

10.16
#4D259D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#4D259D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D259D
10.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D259D#FFFFFF#000000##FFFFFF
##4D259D1.0010.162.0710.16
#FFFFFF10.161.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A0
Deuteranopia (green-blind)
#003F9B
Tritanopia (blue-blind)
#32465F
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4d259d;
/* rgb */ color: rgb(77, 37, 157);
/* oklch */ color: oklch(39.7% 0.179 291.1);
Tailwind
colors: {
  custom: {
    50: '#8764bb',
    500: '#4d259d',
    950: '#000000',
  },
}
SCSS
$custom: #4d259d;
$custom-light: #8764bb;
$custom-dark: #000000;
JSON
{
  "hex": "#4d259d",
  "rgb": {
    "r": 77,
    "g": 37,
    "b": 157
  },
  "hsl": {
    "h": 260,
    "s": 61.856,
    "l": 38.039
  },
  "oklch": {
    "l": 0.39725,
    "c": 0.17932,
    "h": 291.1
  },
  "luminance": 0.05335
}

Semantic roles & 50–950 ramp

primary
#4D259D
secondary
#9FBF5E
accent
#E543AF
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4D259D

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

Preview Lab → · Contrast checker → · Palette generator →

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