#4F1687#4F1687

#4F1687 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.3% C 0.170 H 300.5°. Best body text is #FFFFFF at 11.69:1 contrast (WCAG AA passes).

Color values

HEX#4F1687
RGBrgb(79, 22, 135)
HSLhsl(270, 72%, 31%)
HSVhsv(270, 84%, 53%)
CMYKcmyk(41.5%, 83.7%, 0%, 47.1%)
CIE-LABlab(23.62, 47.27, -51.26)
CIE-LCHlch(23.62, 69.73, 312.68°)
OKLaboklab(36.33% 0.0864 -0.1466)
OKLCHoklch(36.33% 0.17 300.5)
XYZxyz(7.8834, 3.9853, 23.2709)
Luminance0.0398 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1687 #4E8716
analogous
#161687 #4F1687 #871686
triadic
#4F1687 #874F16 #16874F
tetradic
#4F1687 #871616 #4E8716 #168687
square
#4F1687 #871616 #4E8716 #168687
split-complementary
#4F1687 #868716 #168716
monochromatic
#11051E #300D52 #4F1687 #6E1FBC #8C39DF

Accessibility & contrast

On white

11.69
#4F1687 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F1687
11.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1687#FFFFFF#000000##FFFFFF
##4F16871.0011.691.8011.69
#FFFFFF11.691.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388A
Deuteranopia (green-blind)
#003785
Tritanopia (blue-blind)
#423650
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4f1687;
/* rgb */ color: rgb(79, 22, 135);
/* oklch */ color: oklch(36.3% 0.170 300.5);
Tailwind
colors: {
  custom: {
    50: '#875cab',
    500: '#4f1687',
    950: '#000000',
  },
}
SCSS
$custom: #4f1687;
$custom-light: #875cab;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1687",
  "rgb": {
    "r": 79,
    "g": 22,
    "b": 135
  },
  "hsl": {
    "h": 270.265,
    "s": 71.975,
    "l": 30.784
  },
  "oklch": {
    "l": 0.36331,
    "c": 0.17018,
    "h": 300.5
  },
  "luminance": 0.03985
}

Semantic roles & 50–950 ramp

primary
#4F1687
secondary
#7CBB3E
accent
#EF3993
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0410
muted
#7D797F

Preview Lab

Preview with #4F1687

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

Preview Lab → · Contrast checker → · Palette generator →

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