#4F277C#4F277C

#4F277C is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.3% C 0.138 H 301.6°. Best body text is #FFFFFF at 10.97:1 contrast (WCAG AA passes).

Color values

HEX#4F277C
RGBrgb(79, 39, 124)
HSLhsl(268, 52%, 32%)
HSVhsv(268, 69%, 49%)
CMYKcmyk(36.3%, 68.5%, 0%, 51.4%)
CIE-LABlab(25.47, 36.54, -41.33)
CIE-LCHlch(25.47, 55.17, 311.49°)
OKLaboklab(37.35% 0.0724 -0.1175)
OKLCHoklch(37.35% 0.138 301.6)
XYZxyz(7.5872, 4.5685, 19.5470)
Luminance0.0457 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F277C #547C27
analogous
#272A7C #4F277C #7A277C
triadic
#4F277C #7C4F27 #277C4F
tetradic
#4F277C #7C272A #547C27 #277C7A
square
#4F277C #7C272A #547C27 #277C7A
split-complementary
#4F277C #7C7A27 #2A7C27
monochromatic
#140A1F #31184D #4F277C #6D36AB #8B54C9

Accessibility & contrast

On white

10.97
#4F277C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#4F277C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F277C
10.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F277C#FFFFFF#000000##FFFFFF
##4F277C1.0010.971.9110.97
#FFFFFF10.971.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C7F
Deuteranopia (green-blind)
#013C7A
Tritanopia (blue-blind)
#463A4E
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4f277c;
/* rgb */ color: rgb(79, 39, 124);
/* oklch */ color: oklch(37.3% 0.138 301.6);
Tailwind
colors: {
  custom: {
    50: '#8464a2',
    500: '#4f277c',
    950: '#000000',
  },
}
SCSS
$custom: #4f277c;
$custom-light: #8464a2;
$custom-dark: #000000;
JSON
{
  "hex": "#4f277c",
  "rgb": {
    "r": 79,
    "g": 39,
    "b": 124
  },
  "hsl": {
    "h": 268.235,
    "s": 52.147,
    "l": 31.961
  },
  "oklch": {
    "l": 0.37345,
    "c": 0.13801,
    "h": 301.6
  },
  "luminance": 0.04569
}

Semantic roles & 50–950 ramp

primary
#4F277C
secondary
#82AE51
accent
#DC4C98
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B050F
muted
#7C7A7F

Preview Lab

Preview with #4F277C

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

Preview Lab → · Contrast checker → · Palette generator →

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