#4F2D9B#4F2D9B

#4F2D9B is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.8% C 0.168 H 291.3°. Best body text is #FFFFFF at 9.63:1 contrast (WCAG AA passes).

Color values

HEX#4F2D9B
RGBrgb(79, 45, 155)
HSLhsl(259, 55%, 39%)
HSVhsv(259, 71%, 61%)
CMYKcmyk(49%, 71%, 0%, 39.2%)
CIE-LABlab(29.17, 41.94, -54.55)
CIE-LCHlch(29.17, 68.81, 307.56°)
OKLaboklab(40.78% 0.061 -0.1564)
OKLCHoklch(40.78% 0.168 291.3)
XYZxyz(10.0776, 5.9052, 31.6128)
Luminance0.0591 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2D9B #799B2D
analogous
#2D429B #4F2D9B #862D9B
triadic
#4F2D9B #9B4F2D #2D9B4F
tetradic
#4F2D9B #9B2D42 #799B2D #2D9B86
square
#4F2D9B #9B2D42 #799B2D #2D9B86
split-complementary
#4F2D9B #9B862D #429B2D
monochromatic
#1F113C #371F6C #4F2D9B #683EC7 #8E6ED5

Accessibility & contrast

On white

9.63
#4F2D9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F2D9B
9.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2D9B#FFFFFF#000000##FFFFFF
##4F2D9B1.009.632.189.63
#FFFFFF9.631.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.631.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4f2d9b;
/* rgb */ color: rgb(79, 45, 155);
/* oklch */ color: oklch(40.8% 0.168 291.3);
Tailwind
colors: {
  custom: {
    50: '#8869b9',
    500: '#4f2d9b',
    950: '#000000',
  },
}
SCSS
$custom: #4f2d9b;
$custom-light: #8869b9;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2d9b",
  "rgb": {
    "r": 79,
    "g": 45,
    "b": 155
  },
  "hsl": {
    "h": 258.545,
    "s": 55,
    "l": 39.216
  },
  "oklch": {
    "l": 0.40785,
    "c": 0.16787,
    "h": 291.3
  },
  "luminance": 0.05906
}

Semantic roles & 50–950 ramp

primary
#4F2D9B
secondary
#A2BC68
accent
#DE49B0
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4F2D9B

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

Preview Lab → · Contrast checker → · Palette generator →

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