#4F17A0#4F17A0

#4F17A0 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.8% C 0.195 H 293.1°. Best body text is #FFFFFF at 10.70:1 contrast (WCAG AA passes).

Color values

HEX#4F17A0
RGBrgb(79, 23, 160)
HSLhsl(265, 75%, 36%)
HSVhsv(265, 86%, 63%)
CMYKcmyk(50.6%, 85.6%, 0%, 37.3%)
CIE-LABlab(26.19, 53.18, -62.48)
CIE-LCHlch(26.19, 82.05, 310.40°)
OKLaboklab(38.85% 0.0766 -0.1795)
OKLCHoklch(38.85% 0.195 293.1)
XYZxyz(9.8742, 4.8128, 33.6596)
Luminance0.0481 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F17A0 #68A017
analogous
#1723A0 #4F17A0 #9317A0
triadic
#4F17A0 #A04F17 #17A04F
tetradic
#4F17A0 #A01723 #68A017 #17A093
square
#4F17A0 #A01723 #68A017 #17A093
split-complementary
#4F17A0 #A09317 #23A017
monochromatic
#1A0835 #350F6A #4F17A0 #691FD6 #8B4CE5

Accessibility & contrast

On white

10.70
#4F17A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#4F17A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F17A0
10.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F17A0#FFFFFF#000000##FFFFFF
##4F17A01.0010.701.9610.70
#FFFFFF10.701.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A4
Deuteranopia (green-blind)
#003B9E
Tritanopia (blue-blind)
#34425E
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4f17a0;
/* rgb */ color: rgb(79, 23, 160);
/* oklch */ color: oklch(38.8% 0.195 293.1);
Tailwind
colors: {
  custom: {
    50: '#8a5ebd',
    500: '#4f17a0',
    950: '#000000',
  },
}
SCSS
$custom: #4f17a0;
$custom-light: #8a5ebd;
$custom-dark: #000000;
JSON
{
  "hex": "#4f17a0",
  "rgb": {
    "r": 79,
    "g": 23,
    "b": 160
  },
  "hsl": {
    "h": 264.526,
    "s": 74.863,
    "l": 35.882
  },
  "oklch": {
    "l": 0.38845,
    "c": 0.19515,
    "h": 293.1
  },
  "luminance": 0.04813
}

Semantic roles & 50–950 ramp

primary
#4F17A0
secondary
#95C74C
accent
#F136A5
background
#F9F5FB
surface
#F1EAF7
border
#CBC6D0
text
#0D0512
muted
#7E7981

Preview Lab

Preview with #4F17A0

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

Preview Lab → · Contrast checker → · Palette generator →

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