#4F1E7B#4F1E7B

#4F1E7B is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.1% C 0.149 H 303.7°. Best body text is #FFFFFF at 11.64:1 contrast (WCAG AA passes).

Color values

HEX#4F1E7B
RGBrgb(79, 30, 123)
HSLhsl(272, 61%, 30%)
HSVhsv(272, 76%, 48%)
CMYKcmyk(35.8%, 75.6%, 0%, 51.8%)
CIE-LABlab(23.74, 40.88, -43.50)
CIE-LCHlch(23.74, 59.69, 313.23°)
OKLaboklab(36.09% 0.0826 -0.1238)
OKLCHoklch(36.09% 0.149 303.7)
XYZxyz(7.2630, 4.0209, 19.1285)
Luminance0.0402 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1E7B #4A7B1E
analogous
#211E7B #4F1E7B #7B1E78
triadic
#4F1E7B #7B4F1E #1E7B4F
tetradic
#4F1E7B #7B211E #4A7B1E #1E787B
square
#4F1E7B #7B211E #4A7B1E #1E787B
split-complementary
#4F1E7B #787B1E #1E7B21
monochromatic
#100619 #2F124A #4F1E7B #6F2AAC #8E42D1

Accessibility & contrast

On white

11.64
#4F1E7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#4F1E7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F1E7B
11.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1E7B#FFFFFF#000000##FFFFFF
##4F1E7B1.0011.641.8011.64
#FFFFFF11.641.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377E
Deuteranopia (green-blind)
#003879
Tritanopia (blue-blind)
#46354B
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4f1e7b;
/* rgb */ color: rgb(79, 30, 123);
/* oklch */ color: oklch(36.1% 0.149 303.7);
Tailwind
colors: {
  custom: {
    50: '#855fa2',
    500: '#4f1e7b',
    950: '#000000',
  },
}
SCSS
$custom: #4f1e7b;
$custom-light: #855fa2;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1e7b",
  "rgb": {
    "r": 79,
    "g": 30,
    "b": 123
  },
  "hsl": {
    "h": 271.613,
    "s": 60.784,
    "l": 30
  },
  "oklch": {
    "l": 0.36087,
    "c": 0.14887,
    "h": 303.7
  },
  "luminance": 0.04021
}

Semantic roles & 50–950 ramp

primary
#4F1E7B
secondary
#78AE46
accent
#E44490
background
#F8F5FA
surface
#F0E9F3
border
#CBC5CD
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4F1E7B

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

Preview Lab → · Contrast checker → · Palette generator →

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