#4F2EB2#4F2EB2

#4F2EB2 is a dark, vivid violet. Relative luminance 0.068; OKLCH L 43.0% C 0.194 H 286.5°. Best body text is #FFFFFF at 8.87:1 contrast (WCAG AA passes).

Color values

HEX#4F2EB2
RGBrgb(79, 46, 178)
HSLhsl(255, 59%, 44%)
HSVhsv(255, 74%, 70%)
CMYKcmyk(55.6%, 74.2%, 0%, 30.2%)
CIE-LABlab(31.42, 48.08, -64.74)
CIE-LCHlch(31.42, 80.64, 306.60°)
OKLaboklab(43.01% 0.0551 -0.1863)
OKLCHoklch(43.01% 0.194 286.5)
XYZxyz(12.2349, 6.8299, 42.7845)
Luminance0.0683 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2EB2 #91B22E
analogous
#2E4FB2 #4F2EB2 #912EB2
triadic
#4F2EB2 #B24F2E #2EB24F
tetradic
#4F2EB2 #B22E4F #91B22E #2EB291
square
#4F2EB2 #B22E4F #91B22E #2EB291
split-complementary
#4F2EB2 #B2912E #4FB22E
monochromatic
#241551 #392181 #4F2EB2 #6D4CD1 #957DDD

Accessibility & contrast

On white

8.87
#4F2EB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#4F2EB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2EB2
8.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2EB2#FFFFFF#000000##FFFFFF
##4F2EB21.008.872.378.87
#FFFFFF8.871.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB6
Deuteranopia (green-blind)
#0046B0
Tritanopia (blue-blind)
#23526E
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #4f2eb2;
/* rgb */ color: rgb(79, 46, 178);
/* oklch */ color: oklch(43.0% 0.194 286.5);
Tailwind
colors: {
  custom: {
    50: '#8b6aca',
    500: '#4f2eb2',
    950: '#000000',
  },
}
SCSS
$custom: #4f2eb2;
$custom-light: #8b6aca;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2eb2",
  "rgb": {
    "r": 79,
    "g": 46,
    "b": 178
  },
  "hsl": {
    "h": 255,
    "s": 58.929,
    "l": 43.922
  },
  "oklch": {
    "l": 0.43009,
    "c": 0.19425,
    "h": 286.5
  },
  "luminance": 0.06831
}

Semantic roles & 50–950 ramp

primary
#4F2EB2
secondary
#B2C676
accent
#E246BB
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #4F2EB2

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

Preview Lab → · Contrast checker → · Palette generator →

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