#4F1970#4F1970

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

Color values

HEX#4F1970
RGBrgb(79, 25, 112)
HSLhsl(277, 64%, 27%)
HSVhsv(277, 78%, 44%)
CMYKcmyk(29.5%, 77.7%, 0%, 56.1%)
CIE-LABlab(22.04, 40.45, -39.21)
CIE-LCHlch(22.04, 56.33, 315.89°)
OKLaboklab(34.61% 0.09 -0.1112)
OKLCHoklch(34.61% 0.143 309)
XYZxyz(6.4961, 3.5275, 15.6648)
Luminance0.0353 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1970 #3A7019
analogous
#231970 #4F1970 #701966
triadic
#4F1970 #704F19 #19704F
tetradic
#4F1970 #702319 #3A7019 #196670
square
#4F1970 #702319 #3A7019 #196670
split-complementary
#4F1970 #667019 #197023
monochromatic
#120619 #2C0E3E #4F1970 #7224A2 #9532D1

Accessibility & contrast

On white

12.31
#4F1970 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#4F1970 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F1970
12.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1970#FFFFFF#000000##FFFFFF
##4F19701.0012.311.7112.31
#FFFFFF12.311.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003372
Deuteranopia (green-blind)
#00356E
Tritanopia (blue-blind)
#4A2E43
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4f1970;
/* rgb */ color: rgb(79, 25, 112);
/* oklch */ color: oklch(34.6% 0.143 309.0);
Tailwind
colors: {
  custom: {
    50: '#845c9a',
    500: '#4f1970',
    950: '#000000',
  },
}
SCSS
$custom: #4f1970;
$custom-light: #845c9a;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1970",
  "rgb": {
    "r": 79,
    "g": 25,
    "b": 112
  },
  "hsl": {
    "h": 277.241,
    "s": 63.504,
    "l": 26.863
  },
  "oklch": {
    "l": 0.34606,
    "c": 0.14306,
    "h": 309
  },
  "luminance": 0.03527
}

Semantic roles & 50–950 ramp

primary
#4F1970
secondary
#66A540
accent
#E74180
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4F1970

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

Preview Lab → · Contrast checker → · Palette generator →

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