#4F2CB2#4F2CB2

#4F2CB2 is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.8% C 0.196 H 286.8°. Best body text is #FFFFFF at 8.99:1 contrast (WCAG AA passes).

Color values

HEX#4F2CB2
RGBrgb(79, 44, 178)
HSLhsl(256, 60%, 44%)
HSVhsv(256, 75%, 70%)
CMYKcmyk(55.6%, 75.3%, 0%, 30.2%)
CIE-LABlab(31.06, 49.09, -65.32)
CIE-LCHlch(31.06, 81.71, 306.92°)
OKLaboklab(42.76% 0.0566 -0.188)
OKLCHoklch(42.76% 0.196 286.8)
XYZxyz(12.1586, 6.6773, 42.7590)
Luminance0.0668 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2CB2 #8FB22C
analogous
#2C4CB2 #4F2CB2 #922CB2
triadic
#4F2CB2 #B24F2C #2CB24F
tetradic
#4F2CB2 #B22C4C #8FB22C #2CB292
square
#4F2CB2 #B22C4C #8FB22C #2CB292
split-complementary
#4F2CB2 #B2922C #4CB22C
monochromatic
#231450 #392081 #4F2CB2 #6D49D2 #947ADE

Accessibility & contrast

On white

8.99
#4F2CB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#4F2CB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2CB2
8.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2CB2#FFFFFF#000000##FFFFFF
##4F2CB21.008.992.348.99
#FFFFFF8.991.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB6
Deuteranopia (green-blind)
#0045B0
Tritanopia (blue-blind)
#23516D
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #4f2cb2;
/* rgb */ color: rgb(79, 44, 178);
/* oklch */ color: oklch(42.8% 0.196 286.8);
Tailwind
colors: {
  custom: {
    50: '#8b69ca',
    500: '#4f2cb2',
    950: '#000000',
  },
}
SCSS
$custom: #4f2cb2;
$custom-light: #8b69ca;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2cb2",
  "rgb": {
    "r": 79,
    "g": 44,
    "b": 178
  },
  "hsl": {
    "h": 255.672,
    "s": 60.36,
    "l": 43.529
  },
  "oklch": {
    "l": 0.42758,
    "c": 0.19632,
    "h": 286.8
  },
  "luminance": 0.06678
}

Semantic roles & 50–950 ramp

primary
#4F2CB2
secondary
#B1C673
accent
#E444BA
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #4F2CB2

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

Preview Lab → · Contrast checker → · Palette generator →

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