#4F1FA6#4F1FA6

#4F1FA6 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 40.2% C 0.195 H 290.9°. Best body text is #FFFFFF at 10.10:1 contrast (WCAG AA passes).

Color values

HEX#4F1FA6
RGBrgb(79, 31, 166)
HSLhsl(261, 69%, 39%)
HSVhsv(261, 81%, 65%)
CMYKcmyk(52.4%, 81.3%, 0%, 34.9%)
CIE-LABlab(27.83, 51.71, -63.43)
CIE-LCHlch(27.83, 81.83, 309.19°)
OKLaboklab(40.15% 0.0695 -0.1823)
OKLCHoklch(40.15% 0.195 290.9)
XYZxyz(10.5954, 5.3950, 36.5521)
Luminance0.0539 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1FA6 #76A61F
analogous
#1F33A6 #4F1FA6 #921FA6
triadic
#4F1FA6 #A64F1F #1FA64F
tetradic
#4F1FA6 #A61F33 #76A61F #1FA692
square
#4F1FA6 #A61F33 #76A61F #1FA692
split-complementary
#4F1FA6 #A6921F #33A61F
monochromatic
#1E0C3F #361572 #4F1FA6 #682BD7 #8D5EE1

Accessibility & contrast

On white

10.10
#4F1FA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#4F1FA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F1FA6
10.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1FA6#FFFFFF#000000##FFFFFF
##4F1FA61.0010.102.0810.10
#FFFFFF10.101.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044AA
Deuteranopia (green-blind)
#003FA4
Tritanopia (blue-blind)
#2F4763
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4f1fa6;
/* rgb */ color: rgb(79, 31, 166);
/* oklch */ color: oklch(40.2% 0.195 290.9);
Tailwind
colors: {
  custom: {
    50: '#8a62c2',
    500: '#4f1fa6',
    950: '#000000',
  },
}
SCSS
$custom: #4f1fa6;
$custom-light: #8a62c2;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1fa6",
  "rgb": {
    "r": 79,
    "g": 31,
    "b": 166
  },
  "hsl": {
    "h": 261.333,
    "s": 68.528,
    "l": 38.627
  },
  "oklch": {
    "l": 0.40154,
    "c": 0.19511,
    "h": 290.9
  },
  "luminance": 0.05395
}

Semantic roles & 50–950 ramp

primary
#4F1FA6
secondary
#A0C55B
accent
#EB3CAD
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0512
muted
#7E7A81

Preview Lab

Preview with #4F1FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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