#4F2794#4F2794

#4F2794 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.4% C 0.167 H 294.1°. Best body text is #FFFFFF at 10.24:1 contrast (WCAG AA passes).

Color values

HEX#4F2794
RGBrgb(79, 39, 148)
HSLhsl(262, 58%, 37%)
HSVhsv(262, 74%, 58%)
CMYKcmyk(46.6%, 73.6%, 0%, 42%)
CIE-LABlab(27.44, 43.11, -53.09)
CIE-LCHlch(27.44, 68.39, 309.08°)
OKLaboklab(39.37% 0.0682 -0.1521)
OKLCHoklch(39.37% 0.167 294.1)
XYZxyz(9.2938, 5.2512, 28.5351)
Luminance0.0525 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2794 #6C9427
analogous
#273694 #4F2794 #862794
triadic
#4F2794 #944F27 #27944F
tetradic
#4F2794 #942736 #6C9427 #279486
square
#4F2794 #942736 #6C9427 #279486
split-complementary
#4F2794 #948627 #369427
monochromatic
#1B0D33 #351A64 #4F2794 #6934C4 #8B60D5

Accessibility & contrast

On white

10.24
#4F2794 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#4F2794 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2794
10.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2794#FFFFFF#000000##FFFFFF
##4F27941.0010.242.0510.24
#FFFFFF10.241.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004297
Deuteranopia (green-blind)
#003F92
Tritanopia (blue-blind)
#3B435B
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4f2794;
/* rgb */ color: rgb(79, 39, 148);
/* oklch */ color: oklch(39.4% 0.167 294.1);
Tailwind
colors: {
  custom: {
    50: '#8765b4',
    500: '#4f2794',
    950: '#000000',
  },
}
SCSS
$custom: #4f2794;
$custom-light: #8765b4;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2794",
  "rgb": {
    "r": 79,
    "g": 39,
    "b": 148
  },
  "hsl": {
    "h": 262.018,
    "s": 58.289,
    "l": 36.667
  },
  "oklch": {
    "l": 0.39366,
    "c": 0.16669,
    "h": 294.1
  },
  "luminance": 0.05251
}

Semantic roles & 50–950 ramp

primary
#4F2794
secondary
#98BB5C
accent
#E246A9
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4F2794

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

Preview Lab → · Contrast checker → · Palette generator →

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