#4F298F#4F298F

#4F298F is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.2% C 0.158 H 295.1°. Best body text is #FFFFFF at 10.26:1 contrast (WCAG AA passes).

Color values

HEX#4F298F
RGBrgb(79, 41, 143)
HSLhsl(262, 55%, 36%)
HSVhsv(262, 71%, 56%)
CMYKcmyk(44.8%, 71.3%, 0%, 43.9%)
CIE-LABlab(27.38, 40.68, -50.10)
CIE-LCHlch(27.38, 64.54, 309.08°)
OKLaboklab(39.19% 0.0672 -0.1433)
OKLCHoklch(39.19% 0.158 295.1)
XYZxyz(8.9740, 5.2311, 26.5182)
Luminance0.0523 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F298F #698F29
analogous
#29368F #4F298F #82298F
triadic
#4F298F #8F4F29 #298F4F
tetradic
#4F298F #8F2936 #698F29 #298F82
square
#4F298F #8F2936 #698F29 #298F82
split-complementary
#4F298F #8F8229 #368F29
monochromatic
#1A0E30 #351B5F #4F298F #6937BF #8B61D2

Accessibility & contrast

On white

10.26
#4F298F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F298F
10.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F298F#FFFFFF#000000##FFFFFF
##4F298F1.0010.262.0510.26
#FFFFFF10.261.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004192
Deuteranopia (green-blind)
#003F8D
Tritanopia (blue-blind)
#3D4259
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4f298f;
/* rgb */ color: rgb(79, 41, 143);
/* oklch */ color: oklch(39.2% 0.158 295.1);
Tailwind
colors: {
  custom: {
    50: '#8666b1',
    500: '#4f298f',
    950: '#000000',
  },
}
SCSS
$custom: #4f298f;
$custom-light: #8666b1;
$custom-dark: #000000;
JSON
{
  "hex": "#4f298f",
  "rgb": {
    "r": 79,
    "g": 41,
    "b": 143
  },
  "hsl": {
    "h": 262.353,
    "s": 55.435,
    "l": 36.078
  },
  "oklch": {
    "l": 0.39194,
    "c": 0.1583,
    "h": 295.1
  },
  "luminance": 0.05231
}

Semantic roles & 50–950 ramp

primary
#4F298F
secondary
#95B75C
accent
#DF49A7
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4F298F

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

Preview Lab → · Contrast checker → · Palette generator →

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