#4F298A#4F298A

#4F298A is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.8% C 0.152 H 296.6°. Best body text is #FFFFFF at 10.41:1 contrast (WCAG AA passes).

Color values

HEX#4F298A
RGBrgb(79, 41, 138)
HSLhsl(264, 54%, 35%)
HSVhsv(264, 70%, 54%)
CMYKcmyk(42.8%, 70.3%, 0%, 45.9%)
CIE-LABlab(26.97, 39.29, -47.67)
CIE-LCHlch(26.97, 61.77, 309.49°)
OKLaboklab(38.77% 0.0681 -0.1362)
OKLCHoklch(38.77% 0.152 296.6)
XYZxyz(8.6036, 5.0829, 24.5676)
Luminance0.0508 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F298A #648A29
analogous
#29348A #4F298A #7F298A
triadic
#4F298A #8A4F29 #298A4F
tetradic
#4F298A #8A2934 #648A29 #298A7F
square
#4F298A #8A2934 #648A29 #298A7F
split-complementary
#4F298A #8A7F29 #348A29
monochromatic
#190D2C #341B5B #4F298A #6A37B9 #8A5ECF

Accessibility & contrast

On white

10.41
#4F298A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#4F298A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F298A
10.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F298A#FFFFFF#000000##FFFFFF
##4F298A1.0010.412.0210.41
#FFFFFF10.411.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408D
Deuteranopia (green-blind)
#003E88
Tritanopia (blue-blind)
#404056
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4f298a;
/* rgb */ color: rgb(79, 41, 138);
/* oklch */ color: oklch(38.8% 0.152 296.6);
Tailwind
colors: {
  custom: {
    50: '#8666ad',
    500: '#4f298a',
    950: '#000000',
  },
}
SCSS
$custom: #4f298a;
$custom-light: #8666ad;
$custom-dark: #000000;
JSON
{
  "hex": "#4f298a",
  "rgb": {
    "r": 79,
    "g": 41,
    "b": 138
  },
  "hsl": {
    "h": 263.505,
    "s": 54.19,
    "l": 35.098
  },
  "oklch": {
    "l": 0.3877,
    "c": 0.15226,
    "h": 296.6
  },
  "luminance": 0.05083
}

Semantic roles & 50–950 ramp

primary
#4F298A
secondary
#91B55A
accent
#DE4AA4
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #4F298A

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

Preview Lab → · Contrast checker → · Palette generator →

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