#4F2CAA#4F2CAA

#4F2CAA is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.0% C 0.187 H 288.3°. Best body text is #FFFFFF at 9.24:1 contrast (WCAG AA passes).

Color values

HEX#4F2CAA
RGBrgb(79, 44, 170)
HSLhsl(257, 59%, 42%)
HSVhsv(257, 74%, 67%)
CMYKcmyk(53.5%, 74.1%, 0%, 33.3%)
CIE-LABlab(30.32, 46.79, -61.76)
CIE-LCHlch(30.32, 77.48, 307.15°)
OKLaboklab(42.01% 0.0586 -0.1775)
OKLCHoklch(42.01% 0.187 288.3)
XYZxyz(11.3787, 6.3654, 38.6515)
Luminance0.0637 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2CAA #87AA2C
analogous
#2C48AA #4F2CAA #8E2CAA
triadic
#4F2CAA #AA4F2C #2CAA4F
tetradic
#4F2CAA #AA2C48 #87AA2C #2CAA8E
square
#4F2CAA #AA2C48 #87AA2C #2CAA8E
split-complementary
#4F2CAA #AA8E2C #48AA2C
monochromatic
#221349 #381F79 #4F2CAA #6B44CF #9175DB

Accessibility & contrast

On white

9.24
#4F2CAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#4F2CAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2CAA
9.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2CAA#FFFFFF#000000##FFFFFF
##4F2CAA1.009.242.279.24
#FFFFFF9.241.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAE
Deuteranopia (green-blind)
#0044A8
Tritanopia (blue-blind)
#2B4E69
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4f2caa;
/* rgb */ color: rgb(79, 44, 170);
/* oklch */ color: oklch(42.0% 0.187 288.3);
Tailwind
colors: {
  custom: {
    50: '#8a69c4',
    500: '#4f2caa',
    950: '#000000',
  },
}
SCSS
$custom: #4f2caa;
$custom-light: #8a69c4;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2caa",
  "rgb": {
    "r": 79,
    "g": 44,
    "b": 170
  },
  "hsl": {
    "h": 256.667,
    "s": 58.879,
    "l": 41.961
  },
  "oklch": {
    "l": 0.42007,
    "c": 0.18696,
    "h": 288.3
  },
  "luminance": 0.06366
}

Semantic roles & 50–950 ramp

primary
#4F2CAA
secondary
#ACC36F
accent
#E246B7
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4F2CAA

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

Preview Lab → · Contrast checker → · Palette generator →

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