#4F32B2#4F32B2

#4F32B2 is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.5% C 0.190 H 285.8°. Best body text is #FFFFFF at 8.64:1 contrast (WCAG AA passes).

Color values

HEX#4F32B2
RGBrgb(79, 50, 178)
HSLhsl(254, 56%, 45%)
HSVhsv(254, 72%, 70%)
CMYKcmyk(55.6%, 71.9%, 0%, 30.2%)
CIE-LABlab(32.16, 45.98, -63.51)
CIE-LCHlch(32.16, 78.41, 305.90°)
OKLaboklab(43.54% 0.0519 -0.1827)
OKLCHoklch(43.54% 0.19 285.8)
XYZxyz(12.3985, 7.1571, 42.8390)
Luminance0.0716 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F32B2 #95B232
analogous
#3255B2 #4F32B2 #8F32B2
triadic
#4F32B2 #B24F32 #32B24F
tetradic
#4F32B2 #B23255 #95B232 #32B28F
square
#4F32B2 #B23255 #95B232 #32B28F
split-complementary
#4F32B2 #B28F32 #55B232
monochromatic
#251752 #3A2582 #4F32B2 #6F53CF #9782DC

Accessibility & contrast

On white

8.64
#4F32B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#4F32B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F32B2
8.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F32B2#FFFFFF#000000##FFFFFF
##4F32B21.008.642.438.64
#FFFFFF8.641.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB6
Deuteranopia (green-blind)
#0048B0
Tritanopia (blue-blind)
#22546F
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #4f32b2;
/* rgb */ color: rgb(79, 50, 178);
/* oklch */ color: oklch(43.5% 0.190 285.8);
Tailwind
colors: {
  custom: {
    50: '#8b6dca',
    500: '#4f32b2',
    950: '#000000',
  },
}
SCSS
$custom: #4f32b2;
$custom-light: #8b6dca;
$custom-dark: #000000;
JSON
{
  "hex": "#4f32b2",
  "rgb": {
    "r": 79,
    "g": 50,
    "b": 178
  },
  "hsl": {
    "h": 253.594,
    "s": 56.14,
    "l": 44.706
  },
  "oklch": {
    "l": 0.43536,
    "c": 0.18994,
    "h": 285.8
  },
  "luminance": 0.07158
}

Semantic roles & 50–950 ramp

primary
#4F32B2
secondary
#B4C57B
accent
#DF48BD
background
#F9F6FC
surface
#F1ECF9
border
#CBC7D2
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #4F32B2

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

Preview Lab → · Contrast checker → · Palette generator →

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