#4D268A#4D268A

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

Color values

HEX#4D268A
RGBrgb(77, 38, 138)
HSLhsl(263, 57%, 35%)
HSVhsv(263, 72%, 54%)
CMYKcmyk(44.2%, 72.5%, 0%, 45.9%)
CIE-LABlab(26.15, 40.49, -49.01)
CIE-LCHlch(26.15, 63.57, 309.56°)
OKLaboklab(38.13% 0.0682 -0.1402)
OKLCHoklch(38.13% 0.156 296)
XYZxyz(8.3399, 4.7988, 24.5267)
Luminance0.0480 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D268A #638A26
analogous
#26318A #4D268A #7F268A
triadic
#4D268A #8A4D26 #268A4D
tetradic
#4D268A #8A2631 #638A26 #268A7F
square
#4D268A #8A2631 #638A26 #268A7F
split-complementary
#4D268A #8A7F26 #318A26
monochromatic
#170C2A #32195A #4D268A #6833BA #8859D1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4D268A#FFFFFF#000000##FFFFFF
##4D268A1.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)
#003F8D
Deuteranopia (green-blind)
#003C88
Tritanopia (blue-blind)
#3D3F55
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4d268a;
/* rgb */ color: rgb(77, 38, 138);
/* oklch */ color: oklch(38.1% 0.156 296.0);
Tailwind
colors: {
  custom: {
    50: '#8564ad',
    500: '#4d268a',
    950: '#000000',
  },
}
SCSS
$custom: #4d268a;
$custom-light: #8564ad;
$custom-dark: #000000;
JSON
{
  "hex": "#4d268a",
  "rgb": {
    "r": 77,
    "g": 38,
    "b": 138
  },
  "hsl": {
    "h": 263.4,
    "s": 56.818,
    "l": 34.51
  },
  "oklch": {
    "l": 0.38133,
    "c": 0.15591,
    "h": 296
  },
  "luminance": 0.04799
}

Semantic roles & 50–950 ramp

primary
#4D268A
secondary
#90B656
accent
#E048A5
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #4D268A

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

Preview Lab → · Contrast checker → · Palette generator →

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