#4F2AAB#4F2AAB

#4F2AAB is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.9% C 0.190 H 288.4°. Best body text is #FFFFFF at 9.33:1 contrast (WCAG AA passes).

Color values

HEX#4F2AAB
RGBrgb(79, 42, 171)
HSLhsl(257, 61%, 42%)
HSVhsv(257, 75%, 67%)
CMYKcmyk(53.8%, 75.4%, 0%, 32.9%)
CIE-LABlab(30.05, 48.08, -62.79)
CIE-LCHlch(30.05, 79.08, 307.44°)
OKLaboklab(41.85% 0.06 -0.1805)
OKLCHoklch(41.85% 0.19 288.4)
XYZxyz(11.4009, 6.2579, 39.1273)
Luminance0.0626 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2AAB #86AB2A
analogous
#2A46AB #4F2AAB #902AAB
triadic
#4F2AAB #AB4F2A #2AAB4F
tetradic
#4F2AAB #AB2A46 #86AB2A #2AAB90
square
#4F2AAB #AB2A46 #86AB2A #2AAB90
split-complementary
#4F2AAB #AB902A #46AB2A
monochromatic
#221249 #381E7A #4F2AAB #6B42D1 #9173DD

Accessibility & contrast

On white

9.33
#4F2AAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#4F2AAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2AAB
9.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2AAB#FFFFFF#000000##FFFFFF
##4F2AAB1.009.332.259.33
#FFFFFF9.331.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAF
Deuteranopia (green-blind)
#0043A9
Tritanopia (blue-blind)
#2A4E69
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4f2aab;
/* rgb */ color: rgb(79, 42, 171);
/* oklch */ color: oklch(41.9% 0.190 288.4);
Tailwind
colors: {
  custom: {
    50: '#8a68c5',
    500: '#4f2aab',
    950: '#000000',
  },
}
SCSS
$custom: #4f2aab;
$custom-light: #8a68c5;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2aab",
  "rgb": {
    "r": 79,
    "g": 42,
    "b": 171
  },
  "hsl": {
    "h": 257.209,
    "s": 60.563,
    "l": 41.765
  },
  "oklch": {
    "l": 0.4185,
    "c": 0.19025,
    "h": 288.4
  },
  "luminance": 0.06258
}

Semantic roles & 50–950 ramp

primary
#4F2AAB
secondary
#ABC46D
accent
#E444B6
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4F2AAB

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

Preview Lab → · Contrast checker → · Palette generator →

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