#4F32AB#4F32AB

#4F32AB is a dark, vivid violet. Relative luminance 0.069; OKLCH L 42.9% C 0.181 H 287.1°. Best body text is #FFFFFF at 8.84:1 contrast (WCAG AA passes).

Color values

HEX#4F32AB
RGBrgb(79, 50, 171)
HSLhsl(254, 55%, 43%)
HSVhsv(254, 71%, 67%)
CMYKcmyk(53.8%, 70.8%, 0%, 32.9%)
CIE-LABlab(31.54, 43.91, -60.35)
CIE-LCHlch(31.54, 74.64, 306.04°)
OKLaboklab(42.9% 0.0533 -0.1735)
OKLCHoklch(42.9% 0.181 287.1)
XYZxyz(11.7136, 6.8831, 39.2315)
Luminance0.0688 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F32AB #8EAB32
analogous
#3251AB #4F32AB #8B32AB
triadic
#4F32AB #AB4F32 #32AB4F
tetradic
#4F32AB #AB3251 #8EAB32 #32AB8B
square
#4F32AB #AB3251 #8EAB32 #32AB8B
split-complementary
#4F32AB #AB8B32 #51AB32
monochromatic
#23164C #39247C #4F32AB #6D4FCB #947ED9

Accessibility & contrast

On white

8.84
#4F32AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#4F32AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F32AB
8.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F32AB#FFFFFF#000000##FFFFFF
##4F32AB1.008.842.388.84
#FFFFFF8.841.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAF
Deuteranopia (green-blind)
#0047A9
Tritanopia (blue-blind)
#2A526B
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #4f32ab;
/* rgb */ color: rgb(79, 50, 171);
/* oklch */ color: oklch(42.9% 0.181 287.1);
Tailwind
colors: {
  custom: {
    50: '#8a6cc5',
    500: '#4f32ab',
    950: '#000000',
  },
}
SCSS
$custom: #4f32ab;
$custom-light: #8a6cc5;
$custom-dark: #000000;
JSON
{
  "hex": "#4f32ab",
  "rgb": {
    "r": 79,
    "g": 50,
    "b": 171
  },
  "hsl": {
    "h": 254.38,
    "s": 54.751,
    "l": 43.333
  },
  "oklch": {
    "l": 0.42902,
    "c": 0.18145,
    "h": 287.1
  },
  "luminance": 0.06884
}

Semantic roles & 50–950 ramp

primary
#4F32AB
secondary
#B0C277
accent
#DE4ABB
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0D0713
muted
#7D7A82

Preview Lab

Preview with #4F32AB

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

Preview Lab → · Contrast checker → · Palette generator →

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