#4D258B#4D258B

#4D258B is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.1% C 0.158 H 295.9°. Best body text is #FFFFFF at 10.75:1 contrast (WCAG AA passes).

Color values

HEX#4D258B
RGBrgb(77, 37, 139)
HSLhsl(264, 58%, 35%)
HSVhsv(264, 73%, 55%)
CMYKcmyk(44.6%, 73.4%, 0%, 45.5%)
CIE-LABlab(26.05, 41.28, -49.80)
CIE-LCHlch(26.05, 64.68, 309.66°)
OKLaboklab(38.09% 0.0691 -0.1425)
OKLCHoklch(38.09% 0.158 295.9)
XYZxyz(8.3811, 4.7648, 24.8992)
Luminance0.0476 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D258B #638B25
analogous
#25308B #4D258B #80258B
triadic
#4D258B #8B4D25 #258B4D
tetradic
#4D258B #8B2530 #638B25 #258B80
square
#4D258B #8B2530 #638B25 #258B80
split-complementary
#4D258B #8B8025 #308B25
monochromatic
#170B2A #32185B #4D258B #6832BB #8858D3

Accessibility & contrast

On white

10.75
#4D258B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#4D258B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D258B
10.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D258B#FFFFFF#000000##FFFFFF
##4D258B1.0010.751.9510.75
#FFFFFF10.751.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8E
Deuteranopia (green-blind)
#003C89
Tritanopia (blue-blind)
#3C3F55
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4d258b;
/* rgb */ color: rgb(77, 37, 139);
/* oklch */ color: oklch(38.1% 0.158 295.9);
Tailwind
colors: {
  custom: {
    50: '#8563ae',
    500: '#4d258b',
    950: '#000000',
  },
}
SCSS
$custom: #4d258b;
$custom-light: #8563ae;
$custom-dark: #000000;
JSON
{
  "hex": "#4d258b",
  "rgb": {
    "r": 77,
    "g": 37,
    "b": 139
  },
  "hsl": {
    "h": 263.529,
    "s": 57.955,
    "l": 34.51
  },
  "oklch": {
    "l": 0.38088,
    "c": 0.15833,
    "h": 295.9
  },
  "luminance": 0.04765
}

Semantic roles & 50–950 ramp

primary
#4D258B
secondary
#90B755
accent
#E147A5
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #4D258B

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

Preview Lab → · Contrast checker → · Palette generator →

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