#4F2DA1#4F2DA1

#4F2DA1 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.3% C 0.175 H 290.0°. Best body text is #FFFFFF at 9.45:1 contrast (WCAG AA passes).

Color values

HEX#4F2DA1
RGBrgb(79, 45, 161)
HSLhsl(258, 56%, 40%)
HSVhsv(258, 72%, 63%)
CMYKcmyk(50.9%, 72%, 0%, 36.9%)
CIE-LABlab(29.69, 43.67, -57.35)
CIE-LCHlch(29.69, 72.08, 307.29°)
OKLaboklab(41.32% 0.0598 -0.1646)
OKLCHoklch(41.32% 0.175 290)
XYZxyz(10.5940, 6.1118, 34.3328)
Luminance0.0611 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2DA1 #7FA12D
analogous
#2D45A1 #4F2DA1 #892DA1
triadic
#4F2DA1 #A14F2D #2DA14F
tetradic
#4F2DA1 #A12D45 #7FA12D #2DA189
square
#4F2DA1 #A12D45 #7FA12D #2DA189
split-complementary
#4F2DA1 #A1892D #45A12D
monochromatic
#201241 #382071 #4F2DA1 #6941CA #8F71D7

Accessibility & contrast

On white

9.45
#4F2DA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#4F2DA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2DA1
9.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2DA1#FFFFFF#000000##FFFFFF
##4F2DA11.009.452.229.45
#FFFFFF9.451.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A4
Deuteranopia (green-blind)
#00439F
Tritanopia (blue-blind)
#324B64
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4f2da1;
/* rgb */ color: rgb(79, 45, 161);
/* oklch */ color: oklch(41.3% 0.175 290.0);
Tailwind
colors: {
  custom: {
    50: '#8969be',
    500: '#4f2da1',
    950: '#000000',
  },
}
SCSS
$custom: #4f2da1;
$custom-light: #8969be;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2da1",
  "rgb": {
    "r": 79,
    "g": 45,
    "b": 161
  },
  "hsl": {
    "h": 257.586,
    "s": 56.311,
    "l": 40.392
  },
  "oklch": {
    "l": 0.41317,
    "c": 0.17513,
    "h": 290
  },
  "luminance": 0.06112
}

Semantic roles & 50–950 ramp

primary
#4F2DA1
secondary
#A6BF6B
accent
#E048B3
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4F2DA1

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

Preview Lab → · Contrast checker → · Palette generator →

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