#4F2EAC#4F2EAC

#4F2EAC is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.4% C 0.187 H 287.6°. Best body text is #FFFFFF at 9.06:1 contrast (WCAG AA passes).

Color values

HEX#4F2EAC
RGBrgb(79, 46, 172)
HSLhsl(256, 58%, 43%)
HSVhsv(256, 73%, 67%)
CMYKcmyk(54.1%, 73.3%, 0%, 32.5%)
CIE-LABlab(30.86, 46.34, -62.06)
CIE-LCHlch(30.86, 77.45, 306.75°)
OKLaboklab(42.45% 0.0565 -0.1784)
OKLCHoklch(42.45% 0.187 287.6)
XYZxyz(11.6456, 6.5942, 39.6809)
Luminance0.0659 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2EAC #8BAC2E
analogous
#2E4CAC #4F2EAC #8E2EAC
triadic
#4F2EAC #AC4F2E #2EAC4F
tetradic
#4F2EAC #AC2E4C #8BAC2E #2EAC8E
square
#4F2EAC #AC2E4C #8BAC2E #2EAC8E
split-complementary
#4F2EAC #AC8E2E #4CAC2E
monochromatic
#23144B #39217C #4F2EAC #6C49CE #9379DB

Accessibility & contrast

On white

9.06
#4F2EAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#4F2EAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2EAC
9.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2EAC#FFFFFF#000000##FFFFFF
##4F2EAC1.009.062.329.06
#FFFFFF9.061.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB0
Deuteranopia (green-blind)
#0045AA
Tritanopia (blue-blind)
#29506A
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #4f2eac;
/* rgb */ color: rgb(79, 46, 172);
/* oklch */ color: oklch(42.4% 0.187 287.6);
Tailwind
colors: {
  custom: {
    50: '#8a6ac6',
    500: '#4f2eac',
    950: '#000000',
  },
}
SCSS
$custom: #4f2eac;
$custom-light: #8a6ac6;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2eac",
  "rgb": {
    "r": 79,
    "g": 46,
    "b": 172
  },
  "hsl": {
    "h": 255.714,
    "s": 57.798,
    "l": 42.745
  },
  "oklch": {
    "l": 0.4245,
    "c": 0.18717,
    "h": 287.6
  },
  "luminance": 0.06595
}

Semantic roles & 50–950 ramp

primary
#4F2EAC
secondary
#AEC372
accent
#E147B9
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #4F2EAC

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

Preview Lab → · Contrast checker → · Palette generator →

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