#4F2CAC#4F2CAC

#4F2CAC is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.2% C 0.189 H 287.9°. Best body text is #FFFFFF at 9.18:1 contrast (WCAG AA passes).

Color values

HEX#4F2CAC
RGBrgb(79, 44, 172)
HSLhsl(256, 59%, 42%)
HSVhsv(256, 74%, 67%)
CMYKcmyk(54.1%, 74.4%, 0%, 32.5%)
CIE-LABlab(30.50, 47.36, -62.65)
CIE-LCHlch(30.50, 78.54, 307.09°)
OKLaboklab(42.19% 0.0581 -0.1802)
OKLCHoklch(42.19% 0.189 287.9)
XYZxyz(11.5693, 6.4416, 39.6555)
Luminance0.0644 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2CAC #89AC2C
analogous
#2C49AC #4F2CAC #8F2CAC
triadic
#4F2CAC #AC4F2C #2CAC4F
tetradic
#4F2CAC #AC2C49 #89AC2C #2CAC8F
square
#4F2CAC #AC2C49 #89AC2C #2CAC8F
split-complementary
#4F2CAC #AC8F2C #49AC2C
monochromatic
#22134B #39207B #4F2CAC #6B46D0 #9276DC

Accessibility & contrast

On white

9.18
#4F2CAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#4F2CAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2CAC
9.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2CAC#FFFFFF#000000##FFFFFF
##4F2CAC1.009.182.299.18
#FFFFFF9.181.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB0
Deuteranopia (green-blind)
#0044AA
Tritanopia (blue-blind)
#294F6A
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4f2cac;
/* rgb */ color: rgb(79, 44, 172);
/* oklch */ color: oklch(42.2% 0.189 287.9);
Tailwind
colors: {
  custom: {
    50: '#8a69c6',
    500: '#4f2cac',
    950: '#000000',
  },
}
SCSS
$custom: #4f2cac;
$custom-light: #8a69c6;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2cac",
  "rgb": {
    "r": 79,
    "g": 44,
    "b": 172
  },
  "hsl": {
    "h": 256.406,
    "s": 59.259,
    "l": 42.353
  },
  "oklch": {
    "l": 0.42193,
    "c": 0.18931,
    "h": 287.9
  },
  "luminance": 0.06442
}

Semantic roles & 50–950 ramp

primary
#4F2CAC
secondary
#ADC470
accent
#E245B7
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4F2CAC

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

Preview Lab → · Contrast checker → · Palette generator →

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