#4D276F#4D276F

#4D276F is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.1% C 0.122 H 305.4°. Best body text is #FFFFFF at 11.44:1 contrast (WCAG AA passes).

Color values

HEX#4D276F
RGBrgb(77, 39, 111)
HSLhsl(272, 48%, 29%)
HSVhsv(272, 65%, 44%)
CMYKcmyk(30.6%, 64.9%, 0%, 56.5%)
CIE-LABlab(24.25, 32.60, -35.02)
CIE-LCHlch(24.25, 47.84, 312.95°)
OKLaboklab(36.1% 0.0705 -0.0991)
OKLCHoklch(36.1% 0.122 305.4)
XYZxyz(6.6547, 4.1766, 15.4914)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D276F #496F27
analogous
#29276F #4D276F #6F276D
triadic
#4D276F #6F4D27 #276F4D
tetradic
#4D276F #6F2927 #496F27 #276D6F
square
#4D276F #6F2927 #496F27 #276D6F
split-complementary
#4D276F #6D6F27 #276F29
monochromatic
#100817 #2E1742 #4D276F #6C379C #8B4FC1

Accessibility & contrast

On white

11.44
#4D276F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#4D276F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D276F
11.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D276F#FFFFFF#000000##FFFFFF
##4D276F1.0011.441.8411.44
#FFFFFF11.441.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003871
Deuteranopia (green-blind)
#173A6D
Tritanopia (blue-blind)
#473647
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4d276f;
/* rgb */ color: rgb(77, 39, 111);
/* oklch */ color: oklch(36.1% 0.122 305.4);
Tailwind
colors: {
  custom: {
    50: '#826399',
    500: '#4d276f',
    950: '#000000',
  },
}
SCSS
$custom: #4d276f;
$custom-light: #826399;
$custom-dark: #000000;
JSON
{
  "hex": "#4d276f",
  "rgb": {
    "r": 77,
    "g": 39,
    "b": 111
  },
  "hsl": {
    "h": 271.667,
    "s": 48,
    "l": 29.412
  },
  "oklch": {
    "l": 0.36099,
    "c": 0.12157,
    "h": 305.4
  },
  "luminance": 0.04177
}

Semantic roles & 50–950 ramp

primary
#4D276F
secondary
#77A250
accent
#D85090
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B050E
muted
#7C7A7E

Preview Lab

Preview with #4D276F

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

Preview Lab → · Contrast checker → · Palette generator →

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