#4D248A#4D248A

#4D248A is a dark, vivid violet. Relative luminance 0.047; OKLCH L 37.9% C 0.158 H 296.3°. Best body text is #FFFFFF at 10.85:1 contrast (WCAG AA passes).

Color values

HEX#4D248A
RGBrgb(77, 36, 138)
HSLhsl(264, 59%, 34%)
HSVhsv(264, 74%, 54%)
CMYKcmyk(44.2%, 73.9%, 0%, 45.9%)
CIE-LABlab(25.79, 41.52, -49.61)
CIE-LCHlch(25.79, 64.69, 309.92°)
OKLaboklab(37.87% 0.0703 -0.1419)
OKLCHoklch(37.87% 0.158 296.3)
XYZxyz(8.2777, 4.6743, 24.5059)
Luminance0.0467 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D248A #618A24
analogous
#242E8A #4D248A #80248A
triadic
#4D248A #8A4D24 #248A4D
tetradic
#4D248A #8A242E #618A24 #248A80
square
#4D248A #8A242E #618A24 #248A80
split-complementary
#4D248A #8A8024 #2E8A24
monochromatic
#170B29 #321759 #4D248A #6831BB #8856D3

Accessibility & contrast

On white

10.85
#4D248A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#4D248A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D248A
10.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D248A#FFFFFF#000000##FFFFFF
##4D248A1.0010.851.9410.85
#FFFFFF10.851.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8D
Deuteranopia (green-blind)
#003C88
Tritanopia (blue-blind)
#3D3E55
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4d248a;
/* rgb */ color: rgb(77, 36, 138);
/* oklch */ color: oklch(37.9% 0.158 296.3);
Tailwind
colors: {
  custom: {
    50: '#8563ad',
    500: '#4d248a',
    950: '#000000',
  },
}
SCSS
$custom: #4d248a;
$custom-light: #8563ad;
$custom-dark: #000000;
JSON
{
  "hex": "#4d248a",
  "rgb": {
    "r": 77,
    "g": 36,
    "b": 138
  },
  "hsl": {
    "h": 264.118,
    "s": 58.621,
    "l": 34.118
  },
  "oklch": {
    "l": 0.37872,
    "c": 0.15837,
    "h": 296.3
  },
  "luminance": 0.04675
}

Semantic roles & 50–950 ramp

primary
#4D248A
secondary
#8FB753
accent
#E246A3
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #4D248A

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

Preview Lab → · Contrast checker → · Palette generator →

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