#4F1EA6#4F1EA6

#4F1EA6 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 40.1% C 0.196 H 291.0°. Best body text is #FFFFFF at 10.15:1 contrast (WCAG AA passes).

Color values

HEX#4F1EA6
RGBrgb(79, 30, 166)
HSLhsl(262, 69%, 38%)
HSVhsv(262, 82%, 65%)
CMYKcmyk(52.4%, 81.9%, 0%, 34.9%)
CIE-LABlab(27.69, 52.12, -63.66)
CIE-LCHlch(27.69, 82.27, 309.31°)
OKLaboklab(40.06% 0.0701 -0.183)
OKLCHoklch(40.06% 0.196 291)
XYZxyz(10.5697, 5.3435, 36.5435)
Luminance0.0534 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1EA6 #75A61E
analogous
#1E31A6 #4F1EA6 #931EA6
triadic
#4F1EA6 #A64F1E #1EA64F
tetradic
#4F1EA6 #A61E31 #75A61E #1EA693
square
#4F1EA6 #A61E31 #75A61E #1EA693
split-complementary
#4F1EA6 #A6931E #31A61E
monochromatic
#1E0B3E #361572 #4F1EA6 #6829D8 #8D5DE2

Accessibility & contrast

On white

10.15
#4F1EA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#4F1EA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F1EA6
10.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1EA6#FFFFFF#000000##FFFFFF
##4F1EA61.0010.152.0710.15
#FFFFFF10.151.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044AA
Deuteranopia (green-blind)
#003EA4
Tritanopia (blue-blind)
#304763
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4f1ea6;
/* rgb */ color: rgb(79, 30, 166);
/* oklch */ color: oklch(40.1% 0.196 291.0);
Tailwind
colors: {
  custom: {
    50: '#8a61c2',
    500: '#4f1ea6',
    950: '#000000',
  },
}
SCSS
$custom: #4f1ea6;
$custom-light: #8a61c2;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1ea6",
  "rgb": {
    "r": 79,
    "g": 30,
    "b": 166
  },
  "hsl": {
    "h": 261.618,
    "s": 69.388,
    "l": 38.431
  },
  "oklch": {
    "l": 0.40057,
    "c": 0.19597,
    "h": 291
  },
  "luminance": 0.05344
}

Semantic roles & 50–950 ramp

primary
#4F1EA6
secondary
#9FC65A
accent
#EC3CAD
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0512
muted
#7E7A81

Preview Lab

Preview with #4F1EA6

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

Preview Lab → · Contrast checker → · Palette generator →

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