#4F27A7#4F27A7

#4F27A7 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 41.1% C 0.189 H 289.6°. Best body text is #FFFFFF at 9.63:1 contrast (WCAG AA passes).

Color values

HEX#4F27A7
RGBrgb(79, 39, 167)
HSLhsl(259, 62%, 40%)
HSVhsv(259, 77%, 65%)
CMYKcmyk(52.7%, 76.6%, 0%, 34.5%)
CIE-LABlab(29.17, 48.41, -61.84)
CIE-LCHlch(29.17, 78.53, 308.06°)
OKLaboklab(41.11% 0.0634 -0.1777)
OKLCHoklch(41.11% 0.189 289.6)
XYZxyz(10.9230, 5.9028, 37.1155)
Luminance0.0590 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F27A7 #7FA727
analogous
#273FA7 #4F27A7 #8F27A7
triadic
#4F27A7 #A74F27 #27A74F
tetradic
#4F27A7 #A7273F #7FA727 #27A78F
square
#4F27A7 #A7273F #7FA727 #27A78F
split-complementary
#4F27A7 #A78F27 #3FA727
monochromatic
#201044 #381B75 #4F27A7 #693AD1 #8F6CDD

Accessibility & contrast

On white

9.63
#4F27A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#4F27A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F27A7
9.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F27A7#FFFFFF#000000##FFFFFF
##4F27A71.009.632.189.63
#FFFFFF9.631.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AB
Deuteranopia (green-blind)
#0042A5
Tritanopia (blue-blind)
#2E4B66
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4f27a7;
/* rgb */ color: rgb(79, 39, 167);
/* oklch */ color: oklch(41.1% 0.189 289.6);
Tailwind
colors: {
  custom: {
    50: '#8a66c2',
    500: '#4f27a7',
    950: '#000000',
  },
}
SCSS
$custom: #4f27a7;
$custom-light: #8a66c2;
$custom-dark: #000000;
JSON
{
  "hex": "#4f27a7",
  "rgb": {
    "r": 79,
    "g": 39,
    "b": 167
  },
  "hsl": {
    "h": 258.75,
    "s": 62.136,
    "l": 40.392
  },
  "oklch": {
    "l": 0.41113,
    "c": 0.18871,
    "h": 289.6
  },
  "luminance": 0.05903
}

Semantic roles & 50–950 ramp

primary
#4F27A7
secondary
#A6C367
accent
#E543B2
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4F27A7

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

Preview Lab → · Contrast checker → · Palette generator →

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