#4F2FAA#4F2FAA

#4F2FAA is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.4% C 0.184 H 287.8°. Best body text is #FFFFFF at 9.05:1 contrast (WCAG AA passes).

Color values

HEX#4F2FAA
RGBrgb(79, 47, 170)
HSLhsl(256, 57%, 43%)
HSVhsv(256, 72%, 67%)
CMYKcmyk(53.5%, 72.4%, 0%, 33.3%)
CIE-LABlab(30.87, 45.23, -60.85)
CIE-LCHlch(30.87, 75.81, 306.62°)
OKLaboklab(42.4% 0.0561 -0.1749)
OKLCHoklch(42.4% 0.184 287.8)
XYZxyz(11.4945, 6.5970, 38.6901)
Luminance0.0660 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2FAA #8AAA2F
analogous
#2F4CAA #4F2FAA #8D2FAA
triadic
#4F2FAA #AA4F2F #2FAA4F
tetradic
#4F2FAA #AA2F4C #8AAA2F #2FAA8D
square
#4F2FAA #AA2F4C #8AAA2F #2FAA8D
split-complementary
#4F2FAA #AA8D2F #4CAA2F
monochromatic
#22144A #39227A #4F2FAA #6C49CD #9379DA

Accessibility & contrast

On white

9.05
#4F2FAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#4F2FAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2FAA
9.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2FAA#FFFFFF#000000##FFFFFF
##4F2FAA1.009.052.329.05
#FFFFFF9.051.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAE
Deuteranopia (green-blind)
#0045A8
Tritanopia (blue-blind)
#2B5069
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #4f2faa;
/* rgb */ color: rgb(79, 47, 170);
/* oklch */ color: oklch(42.4% 0.184 287.8);
Tailwind
colors: {
  custom: {
    50: '#8a6bc4',
    500: '#4f2faa',
    950: '#000000',
  },
}
SCSS
$custom: #4f2faa;
$custom-light: #8a6bc4;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2faa",
  "rgb": {
    "r": 79,
    "g": 47,
    "b": 170
  },
  "hsl": {
    "h": 255.61,
    "s": 56.682,
    "l": 42.549
  },
  "oklch": {
    "l": 0.424,
    "c": 0.18366,
    "h": 287.8
  },
  "luminance": 0.06598
}

Semantic roles & 50–950 ramp

primary
#4F2FAA
secondary
#AEC272
accent
#E048B8
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #4F2FAA

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

Preview Lab → · Contrast checker → · Palette generator →

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