#4F1674#4F1674

#4F1674 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.6% C 0.151 H 307.6°. Best body text is #FFFFFF at 12.36:1 contrast (WCAG AA passes).

Color values

HEX#4F1674
RGBrgb(79, 22, 116)
HSLhsl(276, 68%, 27%)
HSVhsv(276, 81%, 45%)
CMYKcmyk(31.9%, 81%, 0%, 54.5%)
CIE-LABlab(21.93, 42.66, -41.96)
CIE-LCHlch(21.93, 59.84, 315.47°)
OKLaboklab(34.63% 0.092 -0.1193)
OKLCHoklch(34.63% 0.151 307.6)
XYZxyz(6.6631, 3.4971, 16.8436)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1674 #3B7416
analogous
#201674 #4F1674 #74166A
triadic
#4F1674 #744F16 #16744F
tetradic
#4F1674 #742016 #3B7416 #166A74
square
#4F1674 #742016 #3B7416 #166A74
split-complementary
#4F1674 #6A7416 #167420
monochromatic
#12051A #2C0C41 #4F1674 #7220A7 #942DD7

Accessibility & contrast

On white

12.36
#4F1674 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#4F1674 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F1674
12.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1674#FFFFFF#000000##FFFFFF
##4F16741.0012.361.7012.36
#FFFFFF12.361.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003377
Deuteranopia (green-blind)
#003572
Tritanopia (blue-blind)
#492E45
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4f1674;
/* rgb */ color: rgb(79, 22, 116);
/* oklch */ color: oklch(34.6% 0.151 307.6);
Tailwind
colors: {
  custom: {
    50: '#855b9d',
    500: '#4f1674',
    950: '#000000',
  },
}
SCSS
$custom: #4f1674;
$custom-light: #855b9d;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1674",
  "rgb": {
    "r": 79,
    "g": 22,
    "b": 116
  },
  "hsl": {
    "h": 276.383,
    "s": 68.116,
    "l": 27.059
  },
  "oklch": {
    "l": 0.34632,
    "c": 0.15065,
    "h": 307.6
  },
  "luminance": 0.03497
}

Semantic roles & 50–950 ramp

primary
#4F1674
secondary
#67AA3C
accent
#EB3D81
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4F1674

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

Preview Lab → · Contrast checker → · Palette generator →

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