#4F1F9F#4F1F9F

#4F1F9F is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.5% C 0.188 H 292.5°. Best body text is #FFFFFF at 10.35:1 contrast (WCAG AA passes).

Color values

HEX#4F1F9F
RGBrgb(79, 31, 159)
HSLhsl(263, 67%, 37%)
HSVhsv(263, 81%, 62%)
CMYKcmyk(50.3%, 80.5%, 0%, 37.6%)
CIE-LABlab(27.14, 49.85, -60.31)
CIE-LCHlch(27.14, 78.24, 309.57°)
OKLaboklab(39.47% 0.0718 -0.1732)
OKLCHoklch(39.47% 0.188 292.5)
XYZxyz(9.9707, 5.1451, 33.2619)
Luminance0.0515 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1F9F #6F9F1F
analogous
#1F2F9F #4F1F9F #8F1F9F
triadic
#4F1F9F #9F4F1F #1F9F4F
tetradic
#4F1F9F #9F1F2F #6F9F1F #1F9F8F
square
#4F1F9F #9F1F2F #6F9F1F #1F9F8F
split-complementary
#4F1F9F #9F8F1F #2F9F1F
monochromatic
#1C0B39 #36156C #4F1F9F #6829D2 #8C5ADF

Accessibility & contrast

On white

10.35
#4F1F9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#4F1F9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F1F9F
10.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1F9F#FFFFFF#000000##FFFFFF
##4F1F9F1.0010.352.0310.35
#FFFFFF10.351.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A2
Deuteranopia (green-blind)
#003E9D
Tritanopia (blue-blind)
#35445F
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4f1f9f;
/* rgb */ color: rgb(79, 31, 159);
/* oklch */ color: oklch(39.5% 0.188 292.5);
Tailwind
colors: {
  custom: {
    50: '#8961bc',
    500: '#4f1f9f',
    950: '#000000',
  },
}
SCSS
$custom: #4f1f9f;
$custom-light: #8961bc;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1f9f",
  "rgb": {
    "r": 79,
    "g": 31,
    "b": 159
  },
  "hsl": {
    "h": 262.5,
    "s": 67.368,
    "l": 37.255
  },
  "oklch": {
    "l": 0.3947,
    "c": 0.1875,
    "h": 292.5
  },
  "luminance": 0.05145
}

Semantic roles & 50–950 ramp

primary
#4F1F9F
secondary
#9AC357
accent
#EA3EA9
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0D0512
muted
#7D7A81

Preview Lab

Preview with #4F1F9F

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

Preview Lab → · Contrast checker → · Palette generator →

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