#4D267A#4D267A

#4D267A is a dark, vivid violet. Relative luminance 0.044; OKLCH L 36.8% C 0.137 H 301.2°. Best body text is #FFFFFF at 11.21:1 contrast (WCAG AA passes).

Color values

HEX#4D267A
RGBrgb(77, 38, 122)
HSLhsl(268, 53%, 31%)
HSVhsv(268, 69%, 48%)
CMYKcmyk(36.9%, 68.9%, 0%, 52.2%)
CIE-LABlab(24.86, 36.10, -41.06)
CIE-LCHlch(24.86, 54.67, 311.32°)
OKLaboklab(36.8% 0.0708 -0.1168)
OKLCHoklch(36.8% 0.137 301.2)
XYZxyz(7.2657, 4.3691, 18.8691)
Luminance0.0437 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D267A #537A26
analogous
#26297A #4D267A #77267A
triadic
#4D267A #7A4D26 #267A4D
tetradic
#4D267A #7A2629 #537A26 #267A77
square
#4D267A #7A2629 #537A26 #267A77
split-complementary
#4D267A #7A7726 #297A26
monochromatic
#12091D #30174B #4D267A #6A35A9 #8951C9

Accessibility & contrast

On white

11.21
#4D267A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D267A
11.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D267A#FFFFFF#000000##FFFFFF
##4D267A1.0011.211.8711.21
#FFFFFF11.211.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7D
Deuteranopia (green-blind)
#003B78
Tritanopia (blue-blind)
#43394C
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4d267a;
/* rgb */ color: rgb(77, 38, 122);
/* oklch */ color: oklch(36.8% 0.137 301.2);
Tailwind
colors: {
  custom: {
    50: '#8363a1',
    500: '#4d267a',
    950: '#000000',
  },
}
SCSS
$custom: #4d267a;
$custom-light: #8363a1;
$custom-dark: #000000;
JSON
{
  "hex": "#4d267a",
  "rgb": {
    "r": 77,
    "g": 38,
    "b": 122
  },
  "hsl": {
    "h": 267.857,
    "s": 52.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.36798,
    "c": 0.13662,
    "h": 301.2
  },
  "luminance": 0.04369
}

Semantic roles & 50–950 ramp

primary
#4D267A
secondary
#81AC50
accent
#DC4C99
background
#F8F6FA
surface
#EFEBF3
border
#CAC6CD
text
#0B050F
muted
#7C7A7F

Preview Lab

Preview with #4D267A

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

Preview Lab → · Contrast checker → · Palette generator →

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