#4F1FA7#4F1FA7

#4F1FA7 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 40.3% C 0.196 H 290.6°. Best body text is #FFFFFF at 10.07:1 contrast (WCAG AA passes).

Color values

HEX#4F1FA7
RGBrgb(79, 31, 167)
HSLhsl(261, 69%, 39%)
HSVhsv(261, 81%, 65%)
CMYKcmyk(52.7%, 81.4%, 0%, 34.5%)
CIE-LABlab(27.93, 51.97, -63.87)
CIE-LCHlch(27.93, 82.34, 309.14°)
OKLaboklab(40.25% 0.0691 -0.1836)
OKLCHoklch(40.25% 0.196 290.6)
XYZxyz(10.6875, 5.4318, 37.0370)
Luminance0.0543 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1FA7 #77A71F
analogous
#1F33A7 #4F1FA7 #931FA7
triadic
#4F1FA7 #A74F1F #1FA74F
tetradic
#4F1FA7 #A71F33 #77A71F #1FA793
square
#4F1FA7 #A71F33 #77A71F #1FA793
split-complementary
#4F1FA7 #A7931F #33A71F
monochromatic
#1E0C40 #371573 #4F1FA7 #682BD8 #8D5FE1

Accessibility & contrast

On white

10.07
#4F1FA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#4F1FA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F1FA7
10.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1FA7#FFFFFF#000000##FFFFFF
##4F1FA71.0010.072.0910.07
#FFFFFF10.071.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044AB
Deuteranopia (green-blind)
#003FA5
Tritanopia (blue-blind)
#2F4764
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4f1fa7;
/* rgb */ color: rgb(79, 31, 167);
/* oklch */ color: oklch(40.3% 0.196 290.6);
Tailwind
colors: {
  custom: {
    50: '#8a62c2',
    500: '#4f1fa7',
    950: '#000000',
  },
}
SCSS
$custom: #4f1fa7;
$custom-light: #8a62c2;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1fa7",
  "rgb": {
    "r": 79,
    "g": 31,
    "b": 167
  },
  "hsl": {
    "h": 261.176,
    "s": 68.687,
    "l": 38.824
  },
  "oklch": {
    "l": 0.40253,
    "c": 0.1962,
    "h": 290.6
  },
  "luminance": 0.05432
}

Semantic roles & 50–950 ramp

primary
#4F1FA7
secondary
#A0C65C
accent
#EC3CAE
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0513
muted
#7E7A82

Preview Lab

Preview with #4F1FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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