#4F27A4#4F27A4

#4F27A4 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.8% C 0.185 H 290.3°. Best body text is #FFFFFF at 9.73:1 contrast (WCAG AA passes).

Color values

HEX#4F27A4
RGBrgb(79, 39, 164)
HSLhsl(259, 62%, 40%)
HSVhsv(259, 76%, 64%)
CMYKcmyk(51.8%, 76.2%, 0%, 35.7%)
CIE-LABlab(28.88, 47.57, -60.49)
CIE-LCHlch(28.88, 76.95, 308.19°)
OKLaboklab(40.83% 0.0642 -0.1738)
OKLCHoklch(40.83% 0.185 290.3)
XYZxyz(10.6489, 5.7932, 35.6719)
Luminance0.0579 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F27A4 #7CA427
analogous
#273EA4 #4F27A4 #8E27A4
triadic
#4F27A4 #A44F27 #27A44F
tetradic
#4F27A4 #A4273E #7CA427 #27A48E
square
#4F27A4 #A4273E #7CA427 #27A48E
split-complementary
#4F27A4 #A48E27 #3EA427
monochromatic
#1F0F41 #371B73 #4F27A4 #6938D0 #8E6ADC

Accessibility & contrast

On white

9.73
#4F27A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#4F27A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F27A4
9.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F27A4#FFFFFF#000000##FFFFFF
##4F27A41.009.732.169.73
#FFFFFF9.731.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A8
Deuteranopia (green-blind)
#0041A2
Tritanopia (blue-blind)
#314A64
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4f27a4;
/* rgb */ color: rgb(79, 39, 164);
/* oklch */ color: oklch(40.8% 0.185 290.3);
Tailwind
colors: {
  custom: {
    50: '#8966c0',
    500: '#4f27a4',
    950: '#000000',
  },
}
SCSS
$custom: #4f27a4;
$custom-light: #8966c0;
$custom-dark: #000000;
JSON
{
  "hex": "#4f27a4",
  "rgb": {
    "r": 79,
    "g": 39,
    "b": 164
  },
  "hsl": {
    "h": 259.2,
    "s": 61.576,
    "l": 39.804
  },
  "oklch": {
    "l": 0.4083,
    "c": 0.18527,
    "h": 290.3
  },
  "luminance": 0.05794
}

Semantic roles & 50–950 ramp

primary
#4F27A4
secondary
#A4C265
accent
#E543B1
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0D0612
muted
#7D7A81

Preview Lab

Preview with #4F27A4

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

Preview Lab → · Contrast checker → · Palette generator →

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