#4D247E#4D247E

#4D247E is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.8% C 0.144 H 300.2°. Best body text is #FFFFFF at 11.23:1 contrast (WCAG AA passes).

Color values

HEX#4D247E
RGBrgb(77, 36, 126)
HSLhsl(267, 56%, 32%)
HSVhsv(267, 71%, 49%)
CMYKcmyk(38.9%, 71.4%, 0%, 50.6%)
CIE-LABlab(24.78, 38.25, -43.71)
CIE-LCHlch(24.78, 58.09, 311.19°)
OKLaboklab(36.85% 0.0726 -0.1246)
OKLCHoklch(36.85% 0.144 300.2)
XYZxyz(7.4564, 4.3458, 20.1806)
Luminance0.0435 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D247E #557E24
analogous
#24287E #4D247E #7A247E
triadic
#4D247E #7E4D24 #247E4D
tetradic
#4D247E #7E2428 #557E24 #247E7A
square
#4D247E #7E2428 #557E24 #247E7A
split-complementary
#4D247E #7E7A24 #287E24
monochromatic
#13091F #30164E #4D247E #6A32AE #8950CD

Accessibility & contrast

On white

11.23
#4D247E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#4D247E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D247E
11.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D247E#FFFFFF#000000##FFFFFF
##4D247E1.0011.231.8711.23
#FFFFFF11.231.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B81
Deuteranopia (green-blind)
#003A7C
Tritanopia (blue-blind)
#42394E
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4d247e;
/* rgb */ color: rgb(77, 36, 126);
/* oklch */ color: oklch(36.8% 0.144 300.2);
Tailwind
colors: {
  custom: {
    50: '#8362a4',
    500: '#4d247e',
    950: '#000000',
  },
}
SCSS
$custom: #4d247e;
$custom-light: #8362a4;
$custom-dark: #000000;
JSON
{
  "hex": "#4d247e",
  "rgb": {
    "r": 77,
    "g": 36,
    "b": 126
  },
  "hsl": {
    "h": 267.333,
    "s": 55.556,
    "l": 31.765
  },
  "oklch": {
    "l": 0.36846,
    "c": 0.14419,
    "h": 300.2
  },
  "luminance": 0.04346
}

Semantic roles & 50–950 ramp

primary
#4D247E
secondary
#83B04E
accent
#DF499B
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4D247E

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

Preview Lab → · Contrast checker → · Palette generator →

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