#4F2388#4F2388

#4F2388 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.8% C 0.157 H 298.3°. Best body text is #FFFFFF at 10.89:1 contrast (WCAG AA passes).

Color values

HEX#4F2388
RGBrgb(79, 35, 136)
HSLhsl(266, 59%, 34%)
HSVhsv(266, 74%, 53%)
CMYKcmyk(41.9%, 74.3%, 0%, 46.7%)
CIE-LABlab(25.69, 41.85, -48.51)
CIE-LCHlch(25.69, 64.07, 310.79°)
OKLaboklab(37.81% 0.0747 -0.1386)
OKLCHoklch(37.81% 0.157 298.3)
XYZxyz(8.2683, 4.6418, 23.7481)
Luminance0.0464 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2388 #5C8823
analogous
#232988 #4F2388 #812388
triadic
#4F2388 #884F23 #23884F
tetradic
#4F2388 #882329 #5C8823 #238881
square
#4F2388 #882329 #5C8823 #238881
split-complementary
#4F2388 #888123 #298823
monochromatic
#160A27 #331657 #4F2388 #6B30B9 #8A53D3

Accessibility & contrast

On white

10.89
#4F2388 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#4F2388 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2388
10.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2388#FFFFFF#000000##FFFFFF
##4F23881.0010.891.9310.89
#FFFFFF10.891.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8B
Deuteranopia (green-blind)
#003C86
Tritanopia (blue-blind)
#413C53
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4f2388;
/* rgb */ color: rgb(79, 35, 136);
/* oklch */ color: oklch(37.8% 0.157 298.3);
Tailwind
colors: {
  custom: {
    50: '#8662ab',
    500: '#4f2388',
    950: '#000000',
  },
}
SCSS
$custom: #4f2388;
$custom-light: #8662ab;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2388",
  "rgb": {
    "r": 79,
    "g": 35,
    "b": 136
  },
  "hsl": {
    "h": 266.139,
    "s": 59.064,
    "l": 33.529
  },
  "oklch": {
    "l": 0.37806,
    "c": 0.15749,
    "h": 298.3
  },
  "luminance": 0.04642
}

Semantic roles & 50–950 ramp

primary
#4F2388
secondary
#8AB750
accent
#E2469E
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #4F2388

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

Preview Lab → · Contrast checker → · Palette generator →

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