#4F2B9F#4F2B9F

#4F2B9F is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.9% C 0.175 H 290.7°. Best body text is #FFFFFF at 9.64:1 contrast (WCAG AA passes).

Color values

HEX#4F2B9F
RGBrgb(79, 43, 159)
HSLhsl(259, 57%, 40%)
HSVhsv(259, 73%, 62%)
CMYKcmyk(50.3%, 73%, 0%, 37.6%)
CIE-LABlab(29.14, 44.15, -57.04)
CIE-LCHlch(29.14, 72.13, 307.74°)
OKLaboklab(40.87% 0.062 -0.1637)
OKLCHoklch(40.87% 0.175 290.7)
XYZxyz(10.3446, 5.8928, 33.3865)
Luminance0.0589 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2B9F #7B9F2B
analogous
#2B419F #4F2B9F #892B9F
triadic
#4F2B9F #9F4F2B #2B9F4F
tetradic
#4F2B9F #9F2B41 #7B9F2B #2B9F89
square
#4F2B9F #9F2B41 #7B9F2B #2B9F89
split-complementary
#4F2B9F #9F892B #419F2B
monochromatic
#1F113F #371E6F #4F2B9F #693DCA #8E6DD7

Accessibility & contrast

On white

9.64
#4F2B9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#4F2B9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2B9F
9.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2B9F#FFFFFF#000000##FFFFFF
##4F2B9F1.009.642.189.64
#FFFFFF9.641.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A2
Deuteranopia (green-blind)
#00429D
Tritanopia (blue-blind)
#344962
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4f2b9f;
/* rgb */ color: rgb(79, 43, 159);
/* oklch */ color: oklch(40.9% 0.175 290.7);
Tailwind
colors: {
  custom: {
    50: '#8868bc',
    500: '#4f2b9f',
    950: '#000000',
  },
}
SCSS
$custom: #4f2b9f;
$custom-light: #8868bc;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2b9f",
  "rgb": {
    "r": 79,
    "g": 43,
    "b": 159
  },
  "hsl": {
    "h": 258.621,
    "s": 57.426,
    "l": 39.608
  },
  "oklch": {
    "l": 0.40871,
    "c": 0.17505,
    "h": 290.7
  },
  "luminance": 0.05893
}

Semantic roles & 50–950 ramp

primary
#4F2B9F
secondary
#A3BE67
accent
#E147B1
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4F2B9F

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

Preview Lab → · Contrast checker → · Palette generator →

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