#4F27A5#4F27A5

#4F27A5 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.9% C 0.186 H 290.1°. Best body text is #FFFFFF at 9.70:1 contrast (WCAG AA passes).

Color values

HEX#4F27A5
RGBrgb(79, 39, 165)
HSLhsl(259, 62%, 40%)
HSVhsv(259, 76%, 65%)
CMYKcmyk(52.1%, 76.4%, 0%, 35.3%)
CIE-LABlab(28.98, 47.85, -60.94)
CIE-LCHlch(28.98, 77.48, 308.14°)
OKLaboklab(40.92% 0.0639 -0.1751)
OKLCHoklch(40.92% 0.186 290.1)
XYZxyz(10.7395, 5.8294, 36.1493)
Luminance0.0583 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F27A5 #7DA527
analogous
#273EA5 #4F27A5 #8E27A5
triadic
#4F27A5 #A54F27 #27A54F
tetradic
#4F27A5 #A5273E #7DA527 #27A58E
square
#4F27A5 #A5273E #7DA527 #27A58E
split-complementary
#4F27A5 #A58E27 #3EA527
monochromatic
#201042 #371B74 #4F27A5 #6939D0 #8F6ADC

Accessibility & contrast

On white

9.70
#4F27A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#4F27A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F27A5
9.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F27A5#FFFFFF#000000##FFFFFF
##4F27A51.009.702.179.70
#FFFFFF9.701.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A9
Deuteranopia (green-blind)
#0041A3
Tritanopia (blue-blind)
#304A64
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4f27a5;
/* rgb */ color: rgb(79, 39, 165);
/* oklch */ color: oklch(40.9% 0.186 290.1);
Tailwind
colors: {
  custom: {
    50: '#8a66c1',
    500: '#4f27a5',
    950: '#000000',
  },
}
SCSS
$custom: #4f27a5;
$custom-light: #8a66c1;
$custom-dark: #000000;
JSON
{
  "hex": "#4f27a5",
  "rgb": {
    "r": 79,
    "g": 39,
    "b": 165
  },
  "hsl": {
    "h": 259.048,
    "s": 61.765,
    "l": 40
  },
  "oklch": {
    "l": 0.40924,
    "c": 0.18642,
    "h": 290.1
  },
  "luminance": 0.0583
}

Semantic roles & 50–950 ramp

primary
#4F27A5
secondary
#A5C266
accent
#E543B1
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0D0612
muted
#7D7A81

Preview Lab

Preview with #4F27A5

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

Preview Lab → · Contrast checker → · Palette generator →

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