#4F2EAA#4F2EAA

#4F2EAA is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.3% C 0.185 H 287.9°. Best body text is #FFFFFF at 9.12:1 contrast (WCAG AA passes).

Color values

HEX#4F2EAA
RGBrgb(79, 46, 170)
HSLhsl(256, 57%, 42%)
HSVhsv(256, 73%, 67%)
CMYKcmyk(53.5%, 72.9%, 0%, 33.3%)
CIE-LABlab(30.68, 45.75, -61.15)
CIE-LCHlch(30.68, 76.38, 306.80°)
OKLaboklab(42.27% 0.0569 -0.1758)
OKLCHoklch(42.27% 0.185 287.9)
XYZxyz(11.4550, 6.5180, 38.6769)
Luminance0.0652 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2EAA #89AA2E
analogous
#2E4BAA #4F2EAA #8D2EAA
triadic
#4F2EAA #AA4F2E #2EAA4F
tetradic
#4F2EAA #AA2E4B #89AA2E #2EAA8D
square
#4F2EAA #AA2E4B #89AA2E #2EAA8D
split-complementary
#4F2EAA #AA8D2E #4BAA2E
monochromatic
#22144A #39217A #4F2EAA #6B48CD #9278DA

Accessibility & contrast

On white

9.12
#4F2EAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#4F2EAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2EAA
9.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2EAA#FFFFFF#000000##FFFFFF
##4F2EAA1.009.122.309.12
#FFFFFF9.121.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAE
Deuteranopia (green-blind)
#0045A8
Tritanopia (blue-blind)
#2B4F69
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4f2eaa;
/* rgb */ color: rgb(79, 46, 170);
/* oklch */ color: oklch(42.3% 0.185 287.9);
Tailwind
colors: {
  custom: {
    50: '#8a6ac4',
    500: '#4f2eaa',
    950: '#000000',
  },
}
SCSS
$custom: #4f2eaa;
$custom-light: #8a6ac4;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2eaa",
  "rgb": {
    "r": 79,
    "g": 46,
    "b": 170
  },
  "hsl": {
    "h": 255.968,
    "s": 57.407,
    "l": 42.353
  },
  "oklch": {
    "l": 0.42266,
    "c": 0.18478,
    "h": 287.9
  },
  "luminance": 0.06519
}

Semantic roles & 50–950 ramp

primary
#4F2EAA
secondary
#ADC371
accent
#E147B8
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #4F2EAA

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

Preview Lab → · Contrast checker → · Palette generator →

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