#4F1775#4F1775

#4F1775 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.8% C 0.151 H 307.1°. Best body text is #FFFFFF at 12.27:1 contrast (WCAG AA passes).

Color values

HEX#4F1775
RGBrgb(79, 23, 117)
HSLhsl(276, 67%, 27%)
HSVhsv(276, 80%, 46%)
CMYKcmyk(32.5%, 80.3%, 0%, 54.1%)
CIE-LABlab(22.16, 42.49, -42.24)
CIE-LCHlch(22.16, 59.91, 315.17°)
OKLaboklab(34.82% 0.0909 -0.1201)
OKLCHoklch(34.82% 0.151 307.1)
XYZxyz(6.7410, 3.5595, 17.1581)
Luminance0.0356 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1775 #3D7517
analogous
#201775 #4F1775 #75176C
triadic
#4F1775 #754F17 #17754F
tetradic
#4F1775 #752017 #3D7517 #176C75
square
#4F1775 #752017 #3D7517 #176C75
split-complementary
#4F1775 #6C7517 #177520
monochromatic
#11051A #2C0D42 #4F1775 #7221A8 #9330D6

Accessibility & contrast

On white

12.27
#4F1775 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F1775
12.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1775#FFFFFF#000000##FFFFFF
##4F17751.0012.271.7112.27
#FFFFFF12.271.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003378
Deuteranopia (green-blind)
#003573
Tritanopia (blue-blind)
#482F45
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4f1775;
/* rgb */ color: rgb(79, 23, 117);
/* oklch */ color: oklch(34.8% 0.151 307.1);
Tailwind
colors: {
  custom: {
    50: '#855b9d',
    500: '#4f1775',
    950: '#000000',
  },
}
SCSS
$custom: #4f1775;
$custom-light: #855b9d;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1775",
  "rgb": {
    "r": 79,
    "g": 23,
    "b": 117
  },
  "hsl": {
    "h": 275.745,
    "s": 67.143,
    "l": 27.451
  },
  "oklch": {
    "l": 0.34815,
    "c": 0.1506,
    "h": 307.1
  },
  "luminance": 0.03559
}

Semantic roles & 50–950 ramp

primary
#4F1775
secondary
#69AA3D
accent
#EA3E83
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4F1775

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

Preview Lab → · Contrast checker → · Palette generator →

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