#4F2797#4F2797

#4F2797 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.6% C 0.170 H 293.4°. Best body text is #FFFFFF at 10.15:1 contrast (WCAG AA passes).

Color values

HEX#4F2797
RGBrgb(79, 39, 151)
HSLhsl(261, 59%, 37%)
HSVhsv(261, 74%, 59%)
CMYKcmyk(47.7%, 74.2%, 0%, 40.8%)
CIE-LABlab(27.70, 43.95, -54.51)
CIE-LCHlch(27.70, 70.02, 308.88°)
OKLaboklab(39.63% 0.0675 -0.1562)
OKLCHoklch(39.63% 0.17 293.4)
XYZxyz(9.5343, 5.3474, 29.8019)
Luminance0.0535 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2797 #6F9727
analogous
#273797 #4F2797 #872797
triadic
#4F2797 #974F27 #27974F
tetradic
#4F2797 #972737 #6F9727 #279787
square
#4F2797 #972737 #6F9727 #279787
split-complementary
#4F2797 #978727 #379727
monochromatic
#1C0E36 #361A66 #4F2797 #6834C8 #8C62D6

Accessibility & contrast

On white

10.15
#4F2797 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#4F2797 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2797
10.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2797#FFFFFF#000000##FFFFFF
##4F27971.0010.152.0710.15
#FFFFFF10.151.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439A
Deuteranopia (green-blind)
#003F95
Tritanopia (blue-blind)
#39445D
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4f2797;
/* rgb */ color: rgb(79, 39, 151);
/* oklch */ color: oklch(39.6% 0.170 293.4);
Tailwind
colors: {
  custom: {
    50: '#8865b7',
    500: '#4f2797',
    950: '#000000',
  },
}
SCSS
$custom: #4f2797;
$custom-light: #8865b7;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2797",
  "rgb": {
    "r": 79,
    "g": 39,
    "b": 151
  },
  "hsl": {
    "h": 261.429,
    "s": 58.947,
    "l": 37.255
  },
  "oklch": {
    "l": 0.39634,
    "c": 0.1702,
    "h": 293.4
  },
  "luminance": 0.05348
}

Semantic roles & 50–950 ramp

primary
#4F2797
secondary
#9ABC5E
accent
#E246AA
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4F2797

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

Preview Lab → · Contrast checker → · Palette generator →

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