#4F1770#4F1770

#4F1770 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.4% C 0.145 H 309.3°. Best body text is #FFFFFF at 12.43:1 contrast (WCAG AA passes).

Color values

HEX#4F1770
RGBrgb(79, 23, 112)
HSLhsl(278, 66%, 26%)
HSVhsv(278, 79%, 44%)
CMYKcmyk(29.5%, 79.5%, 0%, 56.1%)
CIE-LABlab(21.74, 41.30, -39.69)
CIE-LCHlch(21.74, 57.28, 316.14°)
OKLaboklab(34.39% 0.092 -0.1126)
OKLCHoklch(34.39% 0.145 309.3)
XYZxyz(6.4549, 3.4450, 15.6510)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1770 #387017
analogous
#231770 #4F1770 #701765
triadic
#4F1770 #704F17 #17704F
tetradic
#4F1770 #702317 #387017 #176570
square
#4F1770 #702317 #387017 #176570
split-complementary
#4F1770 #657017 #177023
monochromatic
#120519 #2B0D3D #4F1770 #7321A3 #962DD4

Accessibility & contrast

On white

12.43
#4F1770 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#4F1770 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F1770
12.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1770#FFFFFF#000000##FFFFFF
##4F17701.0012.431.6912.43
#FFFFFF12.431.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003272
Deuteranopia (green-blind)
#00356E
Tritanopia (blue-blind)
#4A2D43
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4f1770;
/* rgb */ color: rgb(79, 23, 112);
/* oklch */ color: oklch(34.4% 0.145 309.3);
Tailwind
colors: {
  custom: {
    50: '#845b9a',
    500: '#4f1770',
    950: '#000000',
  },
}
SCSS
$custom: #4f1770;
$custom-light: #845b9a;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1770",
  "rgb": {
    "r": 79,
    "g": 23,
    "b": 112
  },
  "hsl": {
    "h": 277.753,
    "s": 65.926,
    "l": 26.471
  },
  "oklch": {
    "l": 0.34395,
    "c": 0.14542,
    "h": 309.3
  },
  "luminance": 0.03445
}

Semantic roles & 50–950 ramp

primary
#4F1770
secondary
#64A63D
accent
#E93F7E
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4F1770

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

Preview Lab → · Contrast checker → · Palette generator →

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