#4F1FA0#4F1FA0

#4F1FA0 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.6% C 0.189 H 292.3°. Best body text is #FFFFFF at 10.31:1 contrast (WCAG AA passes).

Color values

HEX#4F1FA0
RGBrgb(79, 31, 160)
HSLhsl(262, 68%, 37%)
HSVhsv(262, 81%, 63%)
CMYKcmyk(50.6%, 80.6%, 0%, 37.3%)
CIE-LABlab(27.24, 50.11, -60.76)
CIE-LCHlch(27.24, 78.76, 309.51°)
OKLaboklab(39.57% 0.0715 -0.1745)
OKLCHoklch(39.57% 0.189 292.3)
XYZxyz(10.0578, 5.1799, 33.7208)
Luminance0.0518 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1FA0 #70A01F
analogous
#1F2FA0 #4F1FA0 #901FA0
triadic
#4F1FA0 #A04F1F #1FA04F
tetradic
#4F1FA0 #A01F2F #70A01F #1FA090
square
#4F1FA0 #A01F2F #70A01F #1FA090
split-complementary
#4F1FA0 #A0901F #2FA01F
monochromatic
#1C0B39 #36156D #4F1FA0 #6829D3 #8C5ADF

Accessibility & contrast

On white

10.31
#4F1FA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#4F1FA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F1FA0
10.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1FA0#FFFFFF#000000##FFFFFF
##4F1FA01.0010.312.0410.31
#FFFFFF10.311.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A4
Deuteranopia (green-blind)
#003E9E
Tritanopia (blue-blind)
#344460
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4f1fa0;
/* rgb */ color: rgb(79, 31, 160);
/* oklch */ color: oklch(39.6% 0.189 292.3);
Tailwind
colors: {
  custom: {
    50: '#8961bd',
    500: '#4f1fa0',
    950: '#000000',
  },
}
SCSS
$custom: #4f1fa0;
$custom-light: #8961bd;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1fa0",
  "rgb": {
    "r": 79,
    "g": 31,
    "b": 160
  },
  "hsl": {
    "h": 262.326,
    "s": 67.539,
    "l": 37.451
  },
  "oklch": {
    "l": 0.39567,
    "c": 0.18859,
    "h": 292.3
  },
  "luminance": 0.0518
}

Semantic roles & 50–950 ramp

primary
#4F1FA0
secondary
#9BC358
accent
#EA3DAA
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0D0512
muted
#7D7A81

Preview Lab

Preview with #4F1FA0

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

Preview Lab → · Contrast checker → · Palette generator →

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