#4F2497#4F2497

#4F2497 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.3% C 0.174 H 293.9°. Best body text is #FFFFFF at 10.34:1 contrast (WCAG AA passes).

Color values

HEX#4F2497
RGBrgb(79, 36, 151)
HSLhsl(262, 61%, 37%)
HSVhsv(262, 76%, 59%)
CMYKcmyk(47.7%, 76.2%, 0%, 40.8%)
CIE-LABlab(27.18, 45.43, -55.36)
CIE-LCHlch(27.18, 71.61, 309.37°)
OKLaboklab(39.27% 0.0702 -0.1587)
OKLCHoklch(39.27% 0.174 293.9)
XYZxyz(9.4397, 5.1581, 29.7704)
Luminance0.0516 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2497 #6C9724
analogous
#243397 #4F2497 #892497
triadic
#4F2497 #974F24 #24974F
tetradic
#4F2497 #972433 #6C9724 #249789
square
#4F2497 #972433 #6C9724 #249789
split-complementary
#4F2497 #978924 #339724
monochromatic
#1B0C34 #351866 #4F2497 #6930C8 #8B5DD8

Accessibility & contrast

On white

10.34
#4F2497 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#4F2497 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2497
10.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2497#FFFFFF#000000##FFFFFF
##4F24971.0010.342.0310.34
#FFFFFF10.341.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419A
Deuteranopia (green-blind)
#003E95
Tritanopia (blue-blind)
#39435C
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4f2497;
/* rgb */ color: rgb(79, 36, 151);
/* oklch */ color: oklch(39.3% 0.174 293.9);
Tailwind
colors: {
  custom: {
    50: '#8863b7',
    500: '#4f2497',
    950: '#000000',
  },
}
SCSS
$custom: #4f2497;
$custom-light: #8863b7;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2497",
  "rgb": {
    "r": 79,
    "g": 36,
    "b": 151
  },
  "hsl": {
    "h": 262.435,
    "s": 61.497,
    "l": 36.667
  },
  "oklch": {
    "l": 0.39266,
    "c": 0.17357,
    "h": 293.9
  },
  "luminance": 0.05158
}

Semantic roles & 50–950 ramp

primary
#4F2497
secondary
#98BD5A
accent
#E543A8
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4F2497

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

Preview Lab → · Contrast checker → · Palette generator →

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