#4F2FA2#4F2FA2

#4F2FA2 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.7% C 0.174 H 289.4°. Best body text is #FFFFFF at 9.29:1 contrast (WCAG AA passes).

Color values

HEX#4F2FA2
RGBrgb(79, 47, 162)
HSLhsl(257, 55%, 41%)
HSVhsv(257, 71%, 64%)
CMYKcmyk(51.2%, 71%, 0%, 36.5%)
CIE-LABlab(30.17, 42.89, -57.18)
CIE-LCHlch(30.17, 71.48, 306.88°)
OKLaboklab(41.68% 0.0577 -0.1641)
OKLCHoklch(41.68% 0.174 289.4)
XYZxyz(10.7607, 6.3035, 34.8251)
Luminance0.0630 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2FA2 #82A22F
analogous
#2F48A2 #4F2FA2 #882FA2
triadic
#4F2FA2 #A24F2F #2FA24F
tetradic
#4F2FA2 #A22F48 #82A22F #2FA288
square
#4F2FA2 #A22F48 #82A22F #2FA288
split-complementary
#4F2FA2 #A2882F #48A22F
monochromatic
#211343 #382173 #4F2FA2 #6A45C9 #9075D7

Accessibility & contrast

On white

9.29
#4F2FA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#4F2FA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2FA2
9.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2FA2#FFFFFF#000000##FFFFFF
##4F2FA21.009.292.269.29
#FFFFFF9.291.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A5
Deuteranopia (green-blind)
#0044A0
Tritanopia (blue-blind)
#324D65
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4f2fa2;
/* rgb */ color: rgb(79, 47, 162);
/* oklch */ color: oklch(41.7% 0.174 289.4);
Tailwind
colors: {
  custom: {
    50: '#896abe',
    500: '#4f2fa2',
    950: '#000000',
  },
}
SCSS
$custom: #4f2fa2;
$custom-light: #896abe;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2fa2",
  "rgb": {
    "r": 79,
    "g": 47,
    "b": 162
  },
  "hsl": {
    "h": 256.696,
    "s": 55.024,
    "l": 40.98
  },
  "oklch": {
    "l": 0.4168,
    "c": 0.17399,
    "h": 289.4
  },
  "luminance": 0.06304
}

Semantic roles & 50–950 ramp

primary
#4F2FA2
secondary
#A8BF6E
accent
#DE49B5
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #4F2FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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