#4F2596#4F2596

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

Color values

HEX#4F2596
RGBrgb(79, 37, 150)
HSLhsl(262, 60%, 37%)
HSVhsv(262, 75%, 59%)
CMYKcmyk(47.3%, 75.3%, 0%, 41.2%)
CIE-LABlab(27.26, 44.67, -54.61)
CIE-LCHlch(27.26, 70.55, 309.28°)
OKLaboklab(39.3% 0.0696 -0.1565)
OKLCHoklch(39.3% 0.171 294)
XYZxyz(9.3895, 5.1871, 29.3547)
Luminance0.0519 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2596 #6C9625
analogous
#253496 #4F2596 #882596
triadic
#4F2596 #964F25 #25964F
tetradic
#4F2596 #962534 #6C9625 #259688
square
#4F2596 #962534 #6C9625 #259688
split-complementary
#4F2596 #968825 #349625
monochromatic
#1B0D34 #351965 #4F2596 #6931C7 #8B5ED7

Accessibility & contrast

On white

10.31
#4F2596 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#4F2596 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2596
10.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2596#FFFFFF#000000##FFFFFF
##4F25961.0010.312.0410.31
#FFFFFF10.311.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004299
Deuteranopia (green-blind)
#003E94
Tritanopia (blue-blind)
#3A435C
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4f2596;
/* rgb */ color: rgb(79, 37, 150);
/* oklch */ color: oklch(39.3% 0.171 294.0);
Tailwind
colors: {
  custom: {
    50: '#8864b6',
    500: '#4f2596',
    950: '#000000',
  },
}
SCSS
$custom: #4f2596;
$custom-light: #8864b6;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2596",
  "rgb": {
    "r": 79,
    "g": 37,
    "b": 150
  },
  "hsl": {
    "h": 262.301,
    "s": 60.428,
    "l": 36.667
  },
  "oklch": {
    "l": 0.39296,
    "c": 0.1713,
    "h": 294
  },
  "luminance": 0.05187
}

Semantic roles & 50–950 ramp

primary
#4F2596
secondary
#98BC5B
accent
#E444A8
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4F2596

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

Preview Lab → · Contrast checker → · Palette generator →

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