#4F298E#4F298E

#4F298E is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.1% C 0.157 H 295.4°. Best body text is #FFFFFF at 10.29:1 contrast (WCAG AA passes).

Color values

HEX#4F298E
RGBrgb(79, 41, 142)
HSLhsl(263, 55%, 36%)
HSVhsv(263, 71%, 56%)
CMYKcmyk(44.4%, 71.1%, 0%, 44.3%)
CIE-LABlab(27.30, 40.40, -49.62)
CIE-LCHlch(27.30, 63.99, 309.15°)
OKLaboklab(39.11% 0.0674 -0.1419)
OKLCHoklch(39.11% 0.157 295.4)
XYZxyz(8.8986, 5.2009, 26.1210)
Luminance0.0520 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F298E #688E29
analogous
#29368E #4F298E #81298E
triadic
#4F298E #8E4F29 #298E4F
tetradic
#4F298E #8E2936 #688E29 #298E81
square
#4F298E #8E2936 #688E29 #298E81
split-complementary
#4F298E #8E8129 #368E29
monochromatic
#1A0E2F #351B5F #4F298E #6937BD #8B60D1

Accessibility & contrast

On white

10.29
#4F298E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#4F298E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F298E
10.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F298E#FFFFFF#000000##FFFFFF
##4F298E1.0010.292.0410.29
#FFFFFF10.291.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004191
Deuteranopia (green-blind)
#003F8C
Tritanopia (blue-blind)
#3E4258
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4f298e;
/* rgb */ color: rgb(79, 41, 142);
/* oklch */ color: oklch(39.1% 0.157 295.4);
Tailwind
colors: {
  custom: {
    50: '#8666b0',
    500: '#4f298e',
    950: '#000000',
  },
}
SCSS
$custom: #4f298e;
$custom-light: #8666b0;
$custom-dark: #000000;
JSON
{
  "hex": "#4f298e",
  "rgb": {
    "r": 79,
    "g": 41,
    "b": 142
  },
  "hsl": {
    "h": 262.574,
    "s": 55.191,
    "l": 35.882
  },
  "oklch": {
    "l": 0.39108,
    "c": 0.15709,
    "h": 295.4
  },
  "luminance": 0.05201
}

Semantic roles & 50–950 ramp

primary
#4F298E
secondary
#95B75C
accent
#DF49A6
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4F298E

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

Preview Lab → · Contrast checker → · Palette generator →

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