#4F2997#4F2997

#4F2997 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 39.9% C 0.168 H 293.0°. Best body text is #FFFFFF at 10.02:1 contrast (WCAG AA passes).

Color values

HEX#4F2997
RGBrgb(79, 41, 151)
HSLhsl(261, 57%, 38%)
HSVhsv(261, 73%, 59%)
CMYKcmyk(47.7%, 72.8%, 0%, 40.8%)
CIE-LABlab(28.07, 42.92, -53.91)
CIE-LCHlch(28.07, 68.91, 308.53°)
OKLaboklab(39.89% 0.0656 -0.1545)
OKLCHoklch(39.89% 0.168 293)
XYZxyz(9.6018, 5.4822, 29.8244)
Luminance0.0548 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2997 #719729
analogous
#293A97 #4F2997 #862997
triadic
#4F2997 #974F29 #29974F
tetradic
#4F2997 #97293A #719729 #299786
square
#4F2997 #97293A #719729 #299786
split-complementary
#4F2997 #978629 #3A9729
monochromatic
#1D0F37 #361C67 #4F2997 #6836C7 #8C65D5

Accessibility & contrast

On white

10.02
#4F2997 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#4F2997 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2997
10.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2997#FFFFFF#000000##FFFFFF
##4F29971.0010.022.1010.02
#FFFFFF10.021.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449A
Deuteranopia (green-blind)
#004095
Tritanopia (blue-blind)
#39455D
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4f2997;
/* rgb */ color: rgb(79, 41, 151);
/* oklch */ color: oklch(39.9% 0.168 293.0);
Tailwind
colors: {
  custom: {
    50: '#8766b6',
    500: '#4f2997',
    950: '#000000',
  },
}
SCSS
$custom: #4f2997;
$custom-light: #8766b6;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2997",
  "rgb": {
    "r": 79,
    "g": 41,
    "b": 151
  },
  "hsl": {
    "h": 260.727,
    "s": 57.292,
    "l": 37.647
  },
  "oklch": {
    "l": 0.39892,
    "c": 0.16786,
    "h": 293
  },
  "luminance": 0.05483
}

Semantic roles & 50–950 ramp

primary
#4F2997
secondary
#9CBB61
accent
#E147AC
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4F2997

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

Preview Lab → · Contrast checker → · Palette generator →

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