#4F1FA5#4F1FA5

#4F1FA5 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 40.1% C 0.194 H 291.1°. Best body text is #FFFFFF at 10.14:1 contrast (WCAG AA passes).

Color values

HEX#4F1FA5
RGBrgb(79, 31, 165)
HSLhsl(261, 68%, 38%)
HSVhsv(261, 81%, 65%)
CMYKcmyk(52.1%, 81.2%, 0%, 35.3%)
CIE-LABlab(27.73, 51.44, -62.99)
CIE-LCHlch(27.73, 81.32, 309.24°)
OKLaboklab(40.06% 0.0698 -0.181)
OKLCHoklch(40.06% 0.194 291.1)
XYZxyz(10.5040, 5.3584, 36.0708)
Luminance0.0536 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1FA5 #75A51F
analogous
#1F32A5 #4F1FA5 #921FA5
triadic
#4F1FA5 #A54F1F #1FA54F
tetradic
#4F1FA5 #A51F32 #75A51F #1FA592
square
#4F1FA5 #A51F32 #75A51F #1FA592
split-complementary
#4F1FA5 #A5921F #32A51F
monochromatic
#1E0C3E #361571 #4F1FA5 #682AD7 #8D5EE1

Accessibility & contrast

On white

10.14
#4F1FA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F1FA5
10.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1FA5#FFFFFF#000000##FFFFFF
##4F1FA51.0010.142.0710.14
#FFFFFF10.141.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.141.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4f1fa5;
/* rgb */ color: rgb(79, 31, 165);
/* oklch */ color: oklch(40.1% 0.194 291.1);
Tailwind
colors: {
  custom: {
    50: '#8a62c1',
    500: '#4f1fa5',
    950: '#000000',
  },
}
SCSS
$custom: #4f1fa5;
$custom-light: #8a62c1;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1fa5",
  "rgb": {
    "r": 79,
    "g": 31,
    "b": 165
  },
  "hsl": {
    "h": 261.493,
    "s": 68.367,
    "l": 38.431
  },
  "oklch": {
    "l": 0.40056,
    "c": 0.19403,
    "h": 291.1
  },
  "luminance": 0.05359
}

Semantic roles & 50–950 ramp

primary
#4F1FA5
secondary
#9FC55B
accent
#EB3DAD
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0512
muted
#7E7A81

Preview Lab

Preview with #4F1FA5

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

Preview Lab → · Contrast checker → · Palette generator →

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