#4F27AE#4F27AE

#4F27AE is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.8% C 0.197 H 288.2°. Best body text is #FFFFFF at 9.40:1 contrast (WCAG AA passes).

Color values

HEX#4F27AE
RGBrgb(79, 39, 174)
HSLhsl(258, 63%, 42%)
HSVhsv(258, 78%, 68%)
CMYKcmyk(54.6%, 77.6%, 0%, 31.8%)
CIE-LABlab(29.83, 50.37, -64.95)
CIE-LCHlch(29.83, 82.19, 307.79°)
OKLaboklab(41.78% 0.0614 -0.1868)
OKLCHoklch(41.78% 0.197 288.2)
XYZxyz(11.5877, 6.1687, 40.6163)
Luminance0.0617 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F27AE #86AE27
analogous
#2743AE #4F27AE #9327AE
triadic
#4F27AE #AE4F27 #27AE4F
tetradic
#4F27AE #AE2743 #86AE27 #27AE93
square
#4F27AE #AE2743 #86AE27 #27AE93
split-complementary
#4F27AE #AE9327 #43AE27
monochromatic
#22114A #381C7C #4F27AE #6B3ED4 #9170DF

Accessibility & contrast

On white

9.40
#4F27AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#4F27AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F27AE
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F27AE#FFFFFF#000000##FFFFFF
##4F27AE1.009.402.239.40
#FFFFFF9.401.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B2
Deuteranopia (green-blind)
#0043AC
Tritanopia (blue-blind)
#284E6A
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4f27ae;
/* rgb */ color: rgb(79, 39, 174);
/* oklch */ color: oklch(41.8% 0.197 288.2);
Tailwind
colors: {
  custom: {
    50: '#8b66c7',
    500: '#4f27ae',
    950: '#000000',
  },
}
SCSS
$custom: #4f27ae;
$custom-light: #8b66c7;
$custom-dark: #000000;
JSON
{
  "hex": "#4f27ae",
  "rgb": {
    "r": 79,
    "g": 39,
    "b": 174
  },
  "hsl": {
    "h": 257.778,
    "s": 63.38,
    "l": 41.765
  },
  "oklch": {
    "l": 0.41783,
    "c": 0.19668,
    "h": 288.2
  },
  "luminance": 0.06169
}

Semantic roles & 50–950 ramp

primary
#4F27AE
secondary
#ABC66B
accent
#E641B6
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4F27AE

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

Preview Lab → · Contrast checker → · Palette generator →

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