#4F277D#4F277D

#4F277D is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.4% C 0.139 H 301.3°. Best body text is #FFFFFF at 10.94:1 contrast (WCAG AA passes).

Color values

HEX#4F277D
RGBrgb(79, 39, 125)
HSLhsl(268, 52%, 32%)
HSVhsv(268, 69%, 49%)
CMYKcmyk(36.8%, 68.8%, 0%, 51%)
CIE-LABlab(25.55, 36.81, -41.84)
CIE-LCHlch(25.55, 55.73, 311.35°)
OKLaboklab(37.42% 0.0722 -0.119)
OKLCHoklch(37.42% 0.139 301.3)
XYZxyz(7.6508, 4.5939, 19.8817)
Luminance0.0459 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F277D #557D27
analogous
#272A7D #4F277D #7A277D
triadic
#4F277D #7D4F27 #277D4F
tetradic
#4F277D #7D272A #557D27 #277D7A
square
#4F277D #7D272A #557D27 #277D7A
split-complementary
#4F277D #7D7A27 #2A7D27
monochromatic
#140A20 #32184E #4F277D #6C36AC #8B55CA

Accessibility & contrast

On white

10.94
#4F277D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#4F277D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F277D
10.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F277D#FFFFFF#000000##FFFFFF
##4F277D1.0010.941.9210.94
#FFFFFF10.941.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C80
Deuteranopia (green-blind)
#003C7B
Tritanopia (blue-blind)
#453B4E
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4f277d;
/* rgb */ color: rgb(79, 39, 125);
/* oklch */ color: oklch(37.4% 0.139 301.3);
Tailwind
colors: {
  custom: {
    50: '#8464a3',
    500: '#4f277d',
    950: '#000000',
  },
}
SCSS
$custom: #4f277d;
$custom-light: #8464a3;
$custom-dark: #000000;
JSON
{
  "hex": "#4f277d",
  "rgb": {
    "r": 79,
    "g": 39,
    "b": 125
  },
  "hsl": {
    "h": 267.907,
    "s": 52.439,
    "l": 32.157
  },
  "oklch": {
    "l": 0.37424,
    "c": 0.13923,
    "h": 301.3
  },
  "luminance": 0.04594
}

Semantic roles & 50–950 ramp

primary
#4F277D
secondary
#83AF51
accent
#DC4C99
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B050F
muted
#7C7A7F

Preview Lab

Preview with #4F277D

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

Preview Lab → · Contrast checker → · Palette generator →

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