#4F2B9D#4F2B9D

#4F2B9D is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.7% C 0.173 H 291.2°. Best body text is #FFFFFF at 9.70:1 contrast (WCAG AA passes).

Color values

HEX#4F2B9D
RGBrgb(79, 43, 157)
HSLhsl(259, 57%, 39%)
HSVhsv(259, 73%, 62%)
CMYKcmyk(49.7%, 72.6%, 0%, 38.4%)
CIE-LABlab(28.96, 43.58, -56.11)
CIE-LCHlch(28.96, 71.05, 307.84°)
OKLaboklab(40.69% 0.0625 -0.161)
OKLCHoklch(40.69% 0.173 291.2)
XYZxyz(10.1724, 5.8240, 32.4799)
Luminance0.0582 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2B9D #799D2B
analogous
#2B409D #4F2B9D #882B9D
triadic
#4F2B9D #9D4F2B #2B9D4F
tetradic
#4F2B9D #9D2B40 #799D2B #2B9D88
square
#4F2B9D #9D2B40 #799D2B #2B9D88
split-complementary
#4F2B9D #9D882B #409D2B
monochromatic
#1F113D #371E6D #4F2B9D #683CCA #8E6CD7

Accessibility & contrast

On white

9.70
#4F2B9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#4F2B9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2B9D
9.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2B9D#FFFFFF#000000##FFFFFF
##4F2B9D1.009.702.169.70
#FFFFFF9.701.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A0
Deuteranopia (green-blind)
#00429B
Tritanopia (blue-blind)
#354961
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4f2b9d;
/* rgb */ color: rgb(79, 43, 157);
/* oklch */ color: oklch(40.7% 0.173 291.2);
Tailwind
colors: {
  custom: {
    50: '#8868bb',
    500: '#4f2b9d',
    950: '#000000',
  },
}
SCSS
$custom: #4f2b9d;
$custom-light: #8868bb;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2b9d",
  "rgb": {
    "r": 79,
    "g": 43,
    "b": 157
  },
  "hsl": {
    "h": 258.947,
    "s": 57,
    "l": 39.216
  },
  "oklch": {
    "l": 0.40691,
    "c": 0.17267,
    "h": 291.2
  },
  "luminance": 0.05824
}

Semantic roles & 50–950 ramp

primary
#4F2B9D
secondary
#A2BD66
accent
#E048B0
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4F2B9D

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

Preview Lab → · Contrast checker → · Palette generator →

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