#4F2789#4F2789

#4F2789 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.4% C 0.154 H 297.3°. Best body text is #FFFFFF at 10.59:1 contrast (WCAG AA passes).

Color values

HEX#4F2789
RGBrgb(79, 39, 137)
HSLhsl(264, 56%, 35%)
HSVhsv(264, 72%, 54%)
CMYKcmyk(42.3%, 71.5%, 0%, 46.3%)
CIE-LABlab(26.50, 40.08, -47.81)
CIE-LCHlch(26.50, 62.38, 309.97°)
OKLaboklab(38.41% 0.0704 -0.1366)
OKLCHoklch(38.41% 0.154 297.3)
XYZxyz(8.4642, 4.9193, 24.1656)
Luminance0.0492 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2789 #618927
analogous
#273089 #4F2789 #802789
triadic
#4F2789 #894F27 #27894F
tetradic
#4F2789 #892730 #618927 #278980
square
#4F2789 #892730 #618927 #278980
split-complementary
#4F2789 #898027 #308927
monochromatic
#180C2A #341959 #4F2789 #6A35B9 #8A5AD0

Accessibility & contrast

On white

10.59
#4F2789 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#4F2789 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2789
10.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2789#FFFFFF#000000##FFFFFF
##4F27891.0010.591.9810.59
#FFFFFF10.591.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.591.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4f2789;
/* rgb */ color: rgb(79, 39, 137);
/* oklch */ color: oklch(38.4% 0.154 297.3);
Tailwind
colors: {
  custom: {
    50: '#8664ac',
    500: '#4f2789',
    950: '#000000',
  },
}
SCSS
$custom: #4f2789;
$custom-light: #8664ac;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2789",
  "rgb": {
    "r": 79,
    "g": 39,
    "b": 137
  },
  "hsl": {
    "h": 264.49,
    "s": 55.682,
    "l": 34.51
  },
  "oklch": {
    "l": 0.38411,
    "c": 0.15366,
    "h": 297.3
  },
  "luminance": 0.04919
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4F2789

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

Preview Lab → · Contrast checker → · Palette generator →

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