#4F2DA3#4F2DA3

#4F2DA3 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.5% C 0.178 H 289.5°. Best body text is #FFFFFF at 9.39:1 contrast (WCAG AA passes).

Color values

HEX#4F2DA3
RGBrgb(79, 45, 163)
HSLhsl(257, 57%, 41%)
HSVhsv(257, 72%, 64%)
CMYKcmyk(51.5%, 72.4%, 0%, 36.1%)
CIE-LABlab(29.87, 44.25, -58.27)
CIE-LCHlch(29.87, 73.17, 307.22°)
OKLaboklab(41.5% 0.0593 -0.1673)
OKLCHoklch(41.5% 0.178 289.5)
XYZxyz(10.7718, 6.1829, 35.2691)
Luminance0.0618 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2DA3 #81A32D
analogous
#2D46A3 #4F2DA3 #8A2DA3
triadic
#4F2DA3 #A34F2D #2DA34F
tetradic
#4F2DA3 #A32D46 #81A32D #2DA38A
square
#4F2DA3 #A32D46 #81A32D #2DA38A
split-complementary
#4F2DA3 #A38A2D #46A32D
monochromatic
#211343 #382073 #4F2DA3 #6A42CB #9072D8

Accessibility & contrast

On white

9.39
#4F2DA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#4F2DA3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2DA3
9.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2DA3#FFFFFF#000000##FFFFFF
##4F2DA31.009.392.249.39
#FFFFFF9.391.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A6
Deuteranopia (green-blind)
#0043A1
Tritanopia (blue-blind)
#314C65
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4f2da3;
/* rgb */ color: rgb(79, 45, 163);
/* oklch */ color: oklch(41.5% 0.178 289.5);
Tailwind
colors: {
  custom: {
    50: '#8969bf',
    500: '#4f2da3',
    950: '#000000',
  },
}
SCSS
$custom: #4f2da3;
$custom-light: #8969bf;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2da3",
  "rgb": {
    "r": 79,
    "g": 45,
    "b": 163
  },
  "hsl": {
    "h": 257.288,
    "s": 56.731,
    "l": 40.784
  },
  "oklch": {
    "l": 0.41497,
    "c": 0.17754,
    "h": 289.5
  },
  "luminance": 0.06183
}

Semantic roles & 50–950 ramp

primary
#4F2DA3
secondary
#A8C06C
accent
#E048B4
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4F2DA3

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

Preview Lab → · Contrast checker → · Palette generator →

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