#4F2CA4#4F2CA4

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

Color values

HEX#4F2CA4
RGBrgb(79, 44, 164)
HSLhsl(258, 58%, 41%)
HSVhsv(258, 73%, 64%)
CMYKcmyk(51.8%, 73.2%, 0%, 35.7%)
CIE-LABlab(29.77, 45.06, -59.03)
CIE-LCHlch(29.77, 74.27, 307.36°)
OKLaboklab(41.46% 0.06 -0.1696)
OKLCHoklch(41.46% 0.18 289.5)
XYZxyz(10.8240, 6.1435, 35.7302)
Luminance0.0614 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2CA4 #81A42C
analogous
#2C45A4 #4F2CA4 #8B2CA4
triadic
#4F2CA4 #A44F2C #2CA44F
tetradic
#4F2CA4 #A42C45 #81A42C #2CA48B
square
#4F2CA4 #A42C45 #81A42C #2CA48B
split-complementary
#4F2CA4 #A48B2C #45A42C
monochromatic
#211243 #381F74 #4F2CA4 #6A41CC #9071D9

Accessibility & contrast

On white

9.42
#4F2CA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#4F2CA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2CA4
9.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2CA4#FFFFFF#000000##FFFFFF
##4F2CA41.009.422.239.42
#FFFFFF9.421.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A8
Deuteranopia (green-blind)
#0043A2
Tritanopia (blue-blind)
#304C65
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4f2ca4;
/* rgb */ color: rgb(79, 44, 164);
/* oklch */ color: oklch(41.5% 0.180 289.5);
Tailwind
colors: {
  custom: {
    50: '#8969c0',
    500: '#4f2ca4',
    950: '#000000',
  },
}
SCSS
$custom: #4f2ca4;
$custom-light: #8969c0;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2ca4",
  "rgb": {
    "r": 79,
    "g": 44,
    "b": 164
  },
  "hsl": {
    "h": 257.5,
    "s": 57.692,
    "l": 40.784
  },
  "oklch": {
    "l": 0.41455,
    "c": 0.17986,
    "h": 289.5
  },
  "luminance": 0.06144
}

Semantic roles & 50–950 ramp

primary
#4F2CA4
secondary
#A8C06B
accent
#E147B4
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4F2CA4

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

Preview Lab → · Contrast checker → · Palette generator →

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