#4F278A#4F278A

#4F278A is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.5% C 0.155 H 297.0°. Best body text is #FFFFFF at 10.55:1 contrast (WCAG AA passes).

Color values

HEX#4F278A
RGBrgb(79, 39, 138)
HSLhsl(264, 56%, 35%)
HSVhsv(264, 72%, 54%)
CMYKcmyk(42.8%, 71.7%, 0%, 45.9%)
CIE-LABlab(26.59, 40.35, -48.30)
CIE-LCHlch(26.59, 62.93, 309.88°)
OKLaboklab(38.5% 0.0702 -0.138)
OKLCHoklch(38.5% 0.155 297)
XYZxyz(8.5362, 4.9481, 24.5452)
Luminance0.0495 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F278A #628A27
analogous
#27318A #4F278A #80278A
triadic
#4F278A #8A4F27 #278A4F
tetradic
#4F278A #8A2731 #628A27 #278A80
square
#4F278A #8A2731 #628A27 #278A80
split-complementary
#4F278A #8A8027 #318A27
monochromatic
#180C2B #341A5A #4F278A #6A34BA #8A5BD1

Accessibility & contrast

On white

10.55
#4F278A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#4F278A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F278A
10.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F278A#FFFFFF#000000##FFFFFF
##4F278A1.0010.551.9910.55
#FFFFFF10.551.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8D
Deuteranopia (green-blind)
#003E88
Tritanopia (blue-blind)
#403F55
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4f278a;
/* rgb */ color: rgb(79, 39, 138);
/* oklch */ color: oklch(38.5% 0.155 297.0);
Tailwind
colors: {
  custom: {
    50: '#8664ad',
    500: '#4f278a',
    950: '#000000',
  },
}
SCSS
$custom: #4f278a;
$custom-light: #8664ad;
$custom-dark: #000000;
JSON
{
  "hex": "#4f278a",
  "rgb": {
    "r": 79,
    "g": 39,
    "b": 138
  },
  "hsl": {
    "h": 264.242,
    "s": 55.932,
    "l": 34.706
  },
  "oklch": {
    "l": 0.38496,
    "c": 0.15485,
    "h": 297
  },
  "luminance": 0.04948
}

Semantic roles & 50–950 ramp

primary
#4F278A
secondary
#8FB657
accent
#DF49A2
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #4F278A

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

Preview Lab → · Contrast checker → · Palette generator →

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