#4D258C#4D258C

#4D258C is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.2% C 0.160 H 295.6°. Best body text is #FFFFFF at 10.72:1 contrast (WCAG AA passes).

Color values

HEX#4D258C
RGBrgb(77, 37, 140)
HSLhsl(263, 58%, 35%)
HSVhsv(263, 74%, 55%)
CMYKcmyk(45%, 73.6%, 0%, 45.1%)
CIE-LABlab(26.14, 41.56, -50.28)
CIE-LCHlch(26.14, 65.23, 309.58°)
OKLaboklab(38.18% 0.0688 -0.1439)
OKLCHoklch(38.18% 0.16 295.6)
XYZxyz(8.4545, 4.7942, 25.2858)
Luminance0.0479 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D258C #648C25
analogous
#25318C #4D258C #81258C
triadic
#4D258C #8C4D25 #258C4D
tetradic
#4D258C #8C2531 #648C25 #258C81
square
#4D258C #8C2531 #648C25 #258C81
split-complementary
#4D258C #8C8125 #318C25
monochromatic
#180B2B #32185C #4D258C #6832BC #8858D3

Accessibility & contrast

On white

10.72
#4D258C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#4D258C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D258C
10.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D258C#FFFFFF#000000##FFFFFF
##4D258C1.0010.721.9610.72
#FFFFFF10.721.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8F
Deuteranopia (green-blind)
#003C8A
Tritanopia (blue-blind)
#3C3F56
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4d258c;
/* rgb */ color: rgb(77, 37, 140);
/* oklch */ color: oklch(38.2% 0.160 295.6);
Tailwind
colors: {
  custom: {
    50: '#8563ae',
    500: '#4d258c',
    950: '#000000',
  },
}
SCSS
$custom: #4d258c;
$custom-light: #8563ae;
$custom-dark: #000000;
JSON
{
  "hex": "#4d258c",
  "rgb": {
    "r": 77,
    "g": 37,
    "b": 140
  },
  "hsl": {
    "h": 263.301,
    "s": 58.192,
    "l": 34.706
  },
  "oklch": {
    "l": 0.38176,
    "c": 0.15951,
    "h": 295.6
  },
  "luminance": 0.04794
}

Semantic roles & 50–950 ramp

primary
#4D258C
secondary
#91B855
accent
#E146A5
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #4D258C

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

Preview Lab → · Contrast checker → · Palette generator →

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