#4F1A74#4F1A74

#4F1A74 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.0% C 0.146 H 307.1°. Best body text is #FFFFFF at 12.12:1 contrast (WCAG AA passes).

Color values

HEX#4F1A74
RGBrgb(79, 26, 116)
HSLhsl(275, 63%, 28%)
HSVhsv(275, 78%, 45%)
CMYKcmyk(31.9%, 77.6%, 0%, 54.5%)
CIE-LABlab(22.52, 40.97, -41.01)
CIE-LCHlch(22.52, 57.97, 314.98°)
OKLaboklab(35.05% 0.0882 -0.1165)
OKLCHoklch(35.05% 0.146 307.1)
XYZxyz(6.7456, 3.6621, 16.8711)
Luminance0.0366 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1A74 #3F741A
analogous
#221A74 #4F1A74 #741A6C
triadic
#4F1A74 #744F1A #1A744F
tetradic
#4F1A74 #74221A #3F741A #1A6C74
square
#4F1A74 #74221A #3F741A #1A6C74
split-complementary
#4F1A74 #6C741A #1A7422
monochromatic
#110619 #2D0F42 #4F1A74 #7125A6 #9236D2

Accessibility & contrast

On white

12.12
#4F1A74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#4F1A74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F1A74
12.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1A74#FFFFFF#000000##FFFFFF
##4F1A741.0012.121.7312.12
#FFFFFF12.121.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003477
Deuteranopia (green-blind)
#003672
Tritanopia (blue-blind)
#493046
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4f1a74;
/* rgb */ color: rgb(79, 26, 116);
/* oklch */ color: oklch(35.0% 0.146 307.1);
Tailwind
colors: {
  custom: {
    50: '#845c9d',
    500: '#4f1a74',
    950: '#000000',
  },
}
SCSS
$custom: #4f1a74;
$custom-light: #845c9d;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1a74",
  "rgb": {
    "r": 79,
    "g": 26,
    "b": 116
  },
  "hsl": {
    "h": 275.333,
    "s": 63.38,
    "l": 27.843
  },
  "oklch": {
    "l": 0.35045,
    "c": 0.1461,
    "h": 307.1
  },
  "luminance": 0.03662
}

Semantic roles & 50–950 ramp

primary
#4F1A74
secondary
#6CA941
accent
#E64185
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4F1A74

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

Preview Lab → · Contrast checker → · Palette generator →

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