#4F27BA#4F27BA

#4F27BA is a dark, highly saturated violet. Relative luminance 0.067; OKLCH L 43.0% C 0.210 H 286.0°. Best body text is #FFFFFF at 9.01:1 contrast (WCAG AA passes).

Color values

HEX#4F27BA
RGBrgb(79, 39, 186)
HSLhsl(256, 65%, 44%)
HSVhsv(256, 79%, 73%)
CMYKcmyk(57.5%, 79%, 0%, 27.1%)
CIE-LABlab(31.01, 53.71, -70.15)
CIE-LCHlch(31.01, 88.35, 307.44°)
OKLaboklab(42.96% 0.0578 -0.202)
OKLCHoklch(42.96% 0.21 286)
XYZxyz(12.8102, 6.6577, 47.0549)
Luminance0.0666 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F27BA #92BA27
analogous
#2748BA #4F27BA #9927BA
triadic
#4F27BA #BA4F27 #27BA4F
tetradic
#4F27BA #BA2748 #92BA27 #27BA99
square
#4F27BA #BA2748 #92BA27 #27BA99
split-complementary
#4F27BA #BA9927 #48BA27
monochromatic
#241255 #3A1C87 #4F27BA #6E46D8 #9579E3

Accessibility & contrast

On white

9.01
#4F27BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#4F27BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F27BA
9.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F27BA#FFFFFF#000000##FFFFFF
##4F27BA1.009.012.339.01
#FFFFFF9.011.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DBE
Deuteranopia (green-blind)
#0045B7
Tritanopia (blue-blind)
#175271
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #4f27ba;
/* rgb */ color: rgb(79, 39, 186);
/* oklch */ color: oklch(43.0% 0.210 286.0);
Tailwind
colors: {
  custom: {
    50: '#8d67d0',
    500: '#4f27ba',
    950: '#000000',
  },
}
SCSS
$custom: #4f27ba;
$custom-light: #8d67d0;
$custom-dark: #000000;
JSON
{
  "hex": "#4f27ba",
  "rgb": {
    "r": 79,
    "g": 39,
    "b": 186
  },
  "hsl": {
    "h": 256.327,
    "s": 65.333,
    "l": 44.118
  },
  "oklch": {
    "l": 0.4296,
    "c": 0.21015,
    "h": 286
  },
  "luminance": 0.06658
}

Semantic roles & 50–950 ramp

primary
#4F27BA
secondary
#B3CB72
accent
#E840BA
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0D0614
muted
#7E7A82

Preview Lab

Preview with #4F27BA

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

Preview Lab → · Contrast checker → · Palette generator →

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