#4F2B9B#4F2B9B

#4F2B9B is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.5% C 0.170 H 291.7°. Best body text is #FFFFFF at 9.76:1 contrast (WCAG AA passes).

Color values

HEX#4F2B9B
RGBrgb(79, 43, 155)
HSLhsl(259, 57%, 39%)
HSVhsv(259, 72%, 61%)
CMYKcmyk(49%, 72.3%, 0%, 39.2%)
CIE-LABlab(28.79, 43.01, -55.18)
CIE-LCHlch(28.79, 69.96, 307.94°)
OKLaboklab(40.51% 0.0629 -0.1582)
OKLCHoklch(40.51% 0.17 291.7)
XYZxyz(10.0031, 5.7562, 31.5880)
Luminance0.0576 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2B9B #779B2B
analogous
#2B3F9B #4F2B9B #872B9B
triadic
#4F2B9B #9B4F2B #2B9B4F
tetradic
#4F2B9B #9B2B3F #779B2B #2B9B87
square
#4F2B9B #9B2B3F #779B2B #2B9B87
split-complementary
#4F2B9B #9B872B #3F9B2B
monochromatic
#1E103B #371E6B #4F2B9B #683BC9 #8D6BD6

Accessibility & contrast

On white

9.76
#4F2B9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#4F2B9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2B9B
9.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2B9B#FFFFFF#000000##FFFFFF
##4F2B9B1.009.762.159.76
#FFFFFF9.761.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469E
Deuteranopia (green-blind)
#004299
Tritanopia (blue-blind)
#374860
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4f2b9b;
/* rgb */ color: rgb(79, 43, 155);
/* oklch */ color: oklch(40.5% 0.170 291.7);
Tailwind
colors: {
  custom: {
    50: '#8868b9',
    500: '#4f2b9b',
    950: '#000000',
  },
}
SCSS
$custom: #4f2b9b;
$custom-light: #8868b9;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2b9b",
  "rgb": {
    "r": 79,
    "g": 43,
    "b": 155
  },
  "hsl": {
    "h": 259.286,
    "s": 56.566,
    "l": 38.824
  },
  "oklch": {
    "l": 0.40513,
    "c": 0.17027,
    "h": 291.7
  },
  "luminance": 0.05757
}

Semantic roles & 50–950 ramp

primary
#4F2B9B
secondary
#A0BC65
accent
#E048AF
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4F2B9B

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

Preview Lab → · Contrast checker → · Palette generator →

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