#4D258E#4D258E

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

Color values

HEX#4D258E
RGBrgb(77, 37, 142)
HSLhsl(263, 59%, 35%)
HSVhsv(263, 74%, 56%)
CMYKcmyk(45.8%, 73.9%, 0%, 44.3%)
CIE-LABlab(26.31, 42.11, -51.24)
CIE-LCHlch(26.31, 66.32, 309.42°)
OKLaboklab(38.35% 0.0684 -0.1467)
OKLCHoklch(38.35% 0.162 295)
XYZxyz(8.6033, 4.8537, 26.0695)
Luminance0.0485 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D258E #668E25
analogous
#25328E #4D258E #81258E
triadic
#4D258E #8E4D25 #258E4D
tetradic
#4D258E #8E2532 #668E25 #258E81
square
#4D258E #8E2532 #668E25 #258E81
split-complementary
#4D258E #8E8125 #328E25
monochromatic
#180C2D #33185D #4D258E #6732BF #885AD4

Accessibility & contrast

On white

10.66
#4D258E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#4D258E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D258E
10.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D258E#FFFFFF#000000##FFFFFF
##4D258E1.0010.661.9710.66
#FFFFFF10.661.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F91
Deuteranopia (green-blind)
#003D8C
Tritanopia (blue-blind)
#3B4057
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4d258e;
/* rgb */ color: rgb(77, 37, 142);
/* oklch */ color: oklch(38.4% 0.162 295.0);
Tailwind
colors: {
  custom: {
    50: '#8563b0',
    500: '#4d258e',
    950: '#000000',
  },
}
SCSS
$custom: #4d258e;
$custom-light: #8563b0;
$custom-dark: #000000;
JSON
{
  "hex": "#4d258e",
  "rgb": {
    "r": 77,
    "g": 37,
    "b": 142
  },
  "hsl": {
    "h": 262.857,
    "s": 58.659,
    "l": 35.098
  },
  "oklch": {
    "l": 0.38353,
    "c": 0.16187,
    "h": 295
  },
  "luminance": 0.04854
}

Semantic roles & 50–950 ramp

primary
#4D258E
secondary
#93B956
accent
#E246A6
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #4D258E

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

Preview Lab → · Contrast checker → · Palette generator →

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