#4F1F9E#4F1F9E

#4F1F9E is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.4% C 0.186 H 292.8°. Best body text is #FFFFFF at 10.38:1 contrast (WCAG AA passes).

Color values

HEX#4F1F9E
RGBrgb(79, 31, 158)
HSLhsl(263, 67%, 37%)
HSVhsv(263, 80%, 62%)
CMYKcmyk(50%, 80.4%, 0%, 38%)
CIE-LABlab(27.05, 49.58, -59.86)
CIE-LCHlch(27.05, 77.73, 309.63°)
OKLaboklab(39.37% 0.0721 -0.1719)
OKLCHoklch(39.37% 0.186 292.8)
XYZxyz(9.8843, 5.1105, 32.8068)
Luminance0.0511 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1F9E #6E9E1F
analogous
#1F2F9E #4F1F9E #8F1F9E
triadic
#4F1F9E #9E4F1F #1F9E4F
tetradic
#4F1F9E #9E1F2F #6E9E1F #1F9E8F
square
#4F1F9E #9E1F2F #6E9E1F #1F9E8F
split-complementary
#4F1F9E #9E8F1F #2F9E1F
monochromatic
#1C0B38 #35156B #4F1F9E #6929D1 #8B59DE

Accessibility & contrast

On white

10.38
#4F1F9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#4F1F9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F1F9E
10.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1F9E#FFFFFF#000000##FFFFFF
##4F1F9E1.0010.382.0210.38
#FFFFFF10.381.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A1
Deuteranopia (green-blind)
#003D9C
Tritanopia (blue-blind)
#35445F
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4f1f9e;
/* rgb */ color: rgb(79, 31, 158);
/* oklch */ color: oklch(39.4% 0.186 292.8);
Tailwind
colors: {
  custom: {
    50: '#8961bc',
    500: '#4f1f9e',
    950: '#000000',
  },
}
SCSS
$custom: #4f1f9e;
$custom-light: #8961bc;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1f9e",
  "rgb": {
    "r": 79,
    "g": 31,
    "b": 158
  },
  "hsl": {
    "h": 262.677,
    "s": 67.196,
    "l": 37.059
  },
  "oklch": {
    "l": 0.39373,
    "c": 0.18641,
    "h": 292.8
  },
  "luminance": 0.05111
}

Semantic roles & 50–950 ramp

primary
#4F1F9E
secondary
#9AC256
accent
#EA3EA9
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0D0512
muted
#7D7A81

Preview Lab

Preview with #4F1F9E

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

Preview Lab → · Contrast checker → · Palette generator →

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