#4F32A2#4F32A2

#4F32A2 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.1% C 0.170 H 288.8°. Best body text is #FFFFFF at 9.09:1 contrast (WCAG AA passes).

Color values

HEX#4F32A2
RGBrgb(79, 50, 162)
HSLhsl(256, 53%, 42%)
HSVhsv(256, 69%, 64%)
CMYKcmyk(51.2%, 69.1%, 0%, 36.5%)
CIE-LABlab(30.76, 41.24, -56.20)
CIE-LCHlch(30.76, 69.71, 306.27°)
OKLaboklab(42.11% 0.0549 -0.1613)
OKLCHoklch(42.11% 0.17 288.8)
XYZxyz(10.8847, 6.5516, 34.8665)
Luminance0.0655 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F32A2 #85A232
analogous
#324DA2 #4F32A2 #8732A2
triadic
#4F32A2 #A24F32 #32A24F
tetradic
#4F32A2 #A2324D #85A232 #32A287
square
#4F32A2 #A2324D #85A232 #32A287
split-complementary
#4F32A2 #A28732 #4DA232
monochromatic
#211544 #382473 #4F32A2 #6A4AC7 #9179D6

Accessibility & contrast

On white

9.09
#4F32A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#4F32A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F32A2
9.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F32A2#FFFFFF#000000##FFFFFF
##4F32A21.009.092.319.09
#FFFFFF9.091.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA5
Deuteranopia (green-blind)
#0046A0
Tritanopia (blue-blind)
#314E66
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4f32a2;
/* rgb */ color: rgb(79, 50, 162);
/* oklch */ color: oklch(42.1% 0.170 288.8);
Tailwind
colors: {
  custom: {
    50: '#886cbe',
    500: '#4f32a2',
    950: '#000000',
  },
}
SCSS
$custom: #4f32a2;
$custom-light: #886cbe;
$custom-dark: #000000;
JSON
{
  "hex": "#4f32a2",
  "rgb": {
    "r": 79,
    "g": 50,
    "b": 162
  },
  "hsl": {
    "h": 255.536,
    "s": 52.83,
    "l": 41.569
  },
  "oklch": {
    "l": 0.42108,
    "c": 0.17036,
    "h": 288.8
  },
  "luminance": 0.06552
}

Semantic roles & 50–950 ramp

primary
#4F32A2
secondary
#AABE72
accent
#DC4CB7
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #4F32A2

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

Preview Lab → · Contrast checker → · Palette generator →

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