#4F2A97#4F2A97

#4F2A97 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.0% C 0.167 H 292.8°. Best body text is #FFFFFF at 9.95:1 contrast (WCAG AA passes).

Color values

HEX#4F2A97
RGBrgb(79, 42, 151)
HSLhsl(260, 56%, 38%)
HSVhsv(260, 72%, 59%)
CMYKcmyk(47.7%, 72.2%, 0%, 40.8%)
CIE-LABlab(28.25, 42.40, -53.61)
CIE-LCHlch(28.25, 68.35, 308.34°)
OKLaboklab(40.03% 0.0647 -0.1536)
OKLCHoklch(40.03% 0.167 292.8)
XYZxyz(9.6368, 5.5522, 29.8361)
Luminance0.0555 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2A97 #72972A
analogous
#2A3B97 #4F2A97 #852A97
triadic
#4F2A97 #974F2A #2A974F
tetradic
#4F2A97 #972A3B #72972A #2A9785
square
#4F2A97 #972A3B #72972A #2A9785
split-complementary
#4F2A97 #97852A #3B972A
monochromatic
#1D0F37 #361D67 #4F2A97 #6837C7 #8C67D5

Accessibility & contrast

On white

9.95
#4F2A97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#4F2A97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2A97
9.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2A97#FFFFFF#000000##FFFFFF
##4F2A971.009.952.119.95
#FFFFFF9.951.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449A
Deuteranopia (green-blind)
#004195
Tritanopia (blue-blind)
#39465D
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4f2a97;
/* rgb */ color: rgb(79, 42, 151);
/* oklch */ color: oklch(40.0% 0.167 292.8);
Tailwind
colors: {
  custom: {
    50: '#8767b6',
    500: '#4f2a97',
    950: '#000000',
  },
}
SCSS
$custom: #4f2a97;
$custom-light: #8767b6;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2a97",
  "rgb": {
    "r": 79,
    "g": 42,
    "b": 151
  },
  "hsl": {
    "h": 260.367,
    "s": 56.477,
    "l": 37.843
  },
  "oklch": {
    "l": 0.40025,
    "c": 0.16667,
    "h": 292.8
  },
  "luminance": 0.05553
}

Semantic roles & 50–950 ramp

primary
#4F2A97
secondary
#9DBB62
accent
#E048AC
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4F2A97

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

Preview Lab → · Contrast checker → · Palette generator →

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